summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)