summaryrefslogtreecommitdiff
path: root/doCommit.go
diff options
context:
space:
mode:
Diffstat (limited to 'doCommit.go')
-rw-r--r--doCommit.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/doCommit.go b/doCommit.go
index d462e4e..55d2af8 100644
--- a/doCommit.go
+++ b/doCommit.go
@@ -31,12 +31,7 @@ func doCommit() error {
okExit("")
}
- pwd, _ := os.Getwd()
- repo := me.forge.Repos.FindByFullPath(pwd)
- if repo == nil {
- log.Info("todo: forge doesn't know how to work here yet")
- okExit("")
- }
+ repo := findCurrentPwdRepoOrDie()
if !repo.CheckDirty() {
okExit(log.Sprintf("this repo %s is not dirty.\n\n--all # commit all changes in all repos", repo.GetFullPath()))