@@ -241,7 +241,7 @@ main' isVerbose httpManager obeliskRepoReadOnly = withInitCache $ \initCache ->
241241 run_ gitPath ["clone", "https://github.com/reflex-frp/reflex.git", toTextIgnore dir, "--branch", branch]
242242 runOb_ ["thunk", "pack", toTextIgnore dir]
243243 runOb_ ["thunk", "unpack", toTextIgnore dir]
244− branch' <- run gitPath ["-C", toTextIgnore $ dir </> ("_" :: FilePath), "rev-parse", "--abbrev-ref", "HEAD"]
244+ branch' <- run gitPath ["-C", toTextIgnore $ dir </> unpackedDirName, "rev-parse", "--abbrev-ref", "HEAD"]
245245 liftIO $ assertEqual "" branch (T.strip branch')
246246
247247 it "can pack and unpack plain git repos" $
@@ -256,7 +256,7 @@ main' isVerbose httpManager obeliskRepoReadOnly = withInitCache $ \initCache ->
256256 ["default.nix", "src.nix", "github.json" :: FilePath]
257257
258258 runOb_ ["thunk", "unpack", repo]
259− chdir (fromText repo </> ("_" :: FilePath)) $ do
259+ chdir (fromText repo </> unpackedDirName) $ do
260260 unpackHash <- revParseHead
261261 assertRevEQ origHash unpackHash
262262
@@ -399,7 +399,7 @@ testThunkPack executable args path' = withTempFile repoDir "test-file" $ \file h
399399 git $ gitUserConfig <> [ "stash" ]
400400 ensureThunkPackFails "has stashes"
401401 where
402− repoDir = path' </> ("_" :: FilePath)
402+ repoDir = path' </> unpackedDirName
403403
404404-- | Blocks until a non-empty line is available
405405hGetLineSkipBlanks :: MonadIO m => Handle -> m Text
@@ -460,3 +460,6 @@ getFreePorts n = Socket.withSocketsDo $ do
460460 sock <- Socket.socket (Socket.addrFamily addr) (Socket.addrSocketType addr) (Socket.addrProtocol addr)
461461 Socket.bind sock (Socket.addrAddress addr)
462462 pure sock
463+
464+unpackedDirName :: FilePath
465+unpackedDirName = "unpacked"