@@ -241,7 +241,7 @@ main' isVerbose httpManager obeliskRepoReadOnly = withInitCache $ \initCache ->
241 run_ gitPath ["clone", "https://github.com/reflex-frp/reflex.git", toTextIgnore dir, "--branch", branch]
241 run_ gitPath ["clone", "https://github.com/reflex-frp/reflex.git", toTextIgnore dir, "--branch", branch]
242 runOb_ ["thunk", "pack", toTextIgnore dir]
242 runOb_ ["thunk", "pack", toTextIgnore dir]
243 runOb_ ["thunk", "unpack", toTextIgnore dir]
243 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"]
245 liftIO $ assertEqual "" branch (T.strip branch')
245 liftIO $ assertEqual "" branch (T.strip branch')
247 it "can pack and unpack plain git repos" $
247 it "can pack and unpack plain git repos" $
@@ -256,7 +256,7 @@ main' isVerbose httpManager obeliskRepoReadOnly = withInitCache $ \initCache ->
256 ["default.nix", "src.nix", "github.json" :: FilePath]
256 ["default.nix", "src.nix", "github.json" :: FilePath]
258 runOb_ ["thunk", "unpack", repo]
258 runOb_ ["thunk", "unpack", repo]
259− chdir (fromText repo </> ("_" :: FilePath)) $ do
259+ chdir (fromText repo </> unpackedDirName) $ do
260 unpackHash <- revParseHead
260 unpackHash <- revParseHead
261 assertRevEQ origHash unpackHash
261 assertRevEQ origHash unpackHash
@@ -399,7 +399,7 @@ testThunkPack executable args path' = withTempFile repoDir "test-file" $ \file h
399 git $ gitUserConfig <> [ "stash" ]
399 git $ gitUserConfig <> [ "stash" ]
400 ensureThunkPackFails "has stashes"
400 ensureThunkPackFails "has stashes"
402− repoDir = path' </> ("_" :: FilePath)
402+ repoDir = path' </> unpackedDirName
404-- | Blocks until a non-empty line is available
404-- | Blocks until a non-empty line is available
405hGetLineSkipBlanks :: MonadIO m => Handle -> m Text
405hGetLineSkipBlanks :: MonadIO m => Handle -> m Text
@@ -460,3 +460,6 @@ getFreePorts n = Socket.withSocketsDo $ do
460 sock <- Socket.socket (Socket.addrFamily addr) (Socket.addrSocketType addr) (Socket.addrProtocol addr)
460 sock <- Socket.socket (Socket.addrFamily addr) (Socket.addrSocketType addr) (Socket.addrProtocol addr)
461 Socket.bind sock (Socket.addrAddress addr)
461 Socket.bind sock (Socket.addrAddress addr)
462 pure sock
462 pure sock
464+unpackedDirName :: FilePath
465+unpackedDirName = "unpacked"