We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcc98aa commit 05f55e1Copy full SHA for 05f55e1
git.go
@@ -73,12 +73,12 @@ func EnsureRepoExists(repoPath string) {
73
ExitFail("git required, please install")
74
}
75
76
- if StdoutIsTTY() {
77
- ConfirmOrAbort("Could not find dstask repository at %s -- create?", repoPath)
78
- }
79
-
80
gitDotGitLocation := path.Join(repoPath, ".git")
81
if _, err := os.Stat(gitDotGitLocation); os.IsNotExist(err) {
+ if StdoutIsTTY() {
+ ConfirmOrAbort("Could not find dstask repository at %s -- create?", repoPath)
+ }
+
82
err = os.Mkdir(repoPath, 0700)
83
if err != nil {
84
ExitFail("Failed to create directory in git repository")
0 commit comments