From ef8240da56cb86ad487d58cae06f4f09922d317c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 19 Aug 2025 21:07:33 -0500 Subject: [PATCH] simple fix --- doCommit.go | 4 ++++ 1 file changed, 4 insertions(+) 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)