diff options
author | Joey Hess <joey@kitenet.net> | 2010-10-14 23:52:45 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-10-14 23:52:45 -0400 |
commit | bbbe9858fe2e83767661282f7ab8ed3470ec6568 (patch) | |
tree | bbf3eb89e7021e51a3e8aa8f7cc976ec2f8385a3 /Commands.hs | |
parent | c977b6b1f3833ed1ead9212d956d8f83a4ca9028 (diff) |
avoid empty commits
Diffstat (limited to 'Commands.hs')
-rw-r--r-- | Commands.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Commands.hs b/Commands.hs index 6c519c294..5b5bc269b 100644 --- a/Commands.hs +++ b/Commands.hs @@ -178,7 +178,8 @@ logStatus key status = do g <- Annex.gitRepo u <- getUUID g f <- liftIO $ logChange g key u status - liftIO $ Git.run g ["add", f] -- committed at shutdown + liftIO $ Git.run g ["add", f] + Annex.flagChange NeedCommit True inBackend file yes no = do r <- liftIO $ Backend.lookupFile file |