From ea38f17688e8357e8b604af66ba4f0dc740cfab4 Mon Sep 17 00:00:00 2001 From: fr33domlover Date: Thu, 4 Aug 2016 08:00:29 +0000 Subject: [PATCH] Specify repodir in `darcs init`, otherwise it fails If `darcs init` isn't given a `--repodir`, even if you do specify the new repository's path, it complains that it can't run inside a repository, because it's running from a darcs clone of Vervis itself. If the repo dir is specified using `--repodir` instead, Darcs doesn't complain. That's at least the situation with 2.8.5, didn't check other versions. --- src/Darcs/Local/Repository.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Darcs/Local/Repository.hs b/src/Darcs/Local/Repository.hs index 2d2b20d..a56cca8 100644 --- a/src/Darcs/Local/Repository.hs +++ b/src/Darcs/Local/Repository.hs @@ -62,7 +62,7 @@ createRepo createRepo parent name = do let path = parent name createDirectory path - let settings = proc "darcs" ["init", "--no-working-dir", path] + let settings = proc "darcs" ["init", "--no-working-dir", "--repodir", path] (_, _, _, ph) <- createProcess settings ec <- waitForProcess ph case ec of