summaryrefslogtreecommitdiff
path: root/doCommit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-08-19 21:07:33 -0500
committerJeff Carr <[email protected]>2025-08-19 21:07:33 -0500
commitef8240da56cb86ad487d58cae06f4f09922d317c (patch)
treea156d155ebc51b8212c5b4e0247e74f49b1fc444 /doCommit.go
parentd1c9436e45b5c440875a6d32b8b72f1d16c0af4c (diff)
simple fix
Diffstat (limited to 'doCommit.go')
-rw-r--r--doCommit.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/doCommit.go b/doCommit.go
index dceba44..61613d7 100644
--- a/doCommit.go
+++ b/doCommit.go
@@ -44,6 +44,10 @@ func doCommit() {
okExit("")
}
+ if ! repo.IsDirty() {
+ okExit("this repo is not dirty")
+ }
+
if repo.GetCurrentBranchName() != repo.GetUserBranchName() {
found := new(gitpb.Repos)
found.Append(repo)