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)