avoid running pre-commit hook in direct mode
The code that handles committing unlocked files in indirect mode did something unexpected and data lossy.
This commit is contained in:
parent
9cee5b43c2
commit
7272179979
2 changed files with 7 additions and 2 deletions
|
@ -20,7 +20,7 @@ def = [command "pre-commit" paramPaths seek "run by git pre-commit hook"]
|
|||
seek :: [CommandSeek]
|
||||
seek =
|
||||
[ whenNotDirect $ withFilesToBeCommitted $ whenAnnexed $ Command.Fix.start
|
||||
, withFilesUnlockedToBeCommitted start]
|
||||
, whenNotDirect $ withFilesUnlockedToBeCommitted start]
|
||||
|
||||
start :: FilePath -> CommandStart
|
||||
start file = next $ perform file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue