summaryrefslogtreecommitdiff
path: root/doCommit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-17 01:08:30 -0500
committerJeff Carr <[email protected]>2025-09-17 01:08:30 -0500
commitce0fd10064440ebce0fe4941bb15cf4beb14540a (patch)
tree738c8d52819fb7158762480a68962efd0312e6cd /doCommit.go
parentae2cbf1886cb6bd71647c7d6ce1ed55f016c5618 (diff)
common argv handling
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()))