mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-31 06:14:50 +09:00
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.
This commit is contained in:
parent
dc54a89503
commit
ea38f17688
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ createRepo
|
||||||
createRepo parent name = do
|
createRepo parent name = do
|
||||||
let path = parent </> name
|
let path = parent </> name
|
||||||
createDirectory path
|
createDirectory path
|
||||||
let settings = proc "darcs" ["init", "--no-working-dir", path]
|
let settings = proc "darcs" ["init", "--no-working-dir", "--repodir", path]
|
||||||
(_, _, _, ph) <- createProcess settings
|
(_, _, _, ph) <- createProcess settings
|
||||||
ec <- waitForProcess ph
|
ec <- waitForProcess ph
|
||||||
case ec of
|
case ec of
|
||||||
|
|
Loading…
Reference in a new issue