fix assist to commit
This commit is contained in:
parent
9ec5d7fb05
commit
9619f562f4
2 changed files with 9 additions and 11 deletions
|
@ -34,10 +34,4 @@ myseek o = startConcurrency transferStages $ do
|
|||
}
|
||||
|
||||
Command.Sync.prepMerge
|
||||
Command.Sync.seek' o'
|
||||
where
|
||||
o'
|
||||
| Command.Sync.contentOption o == Nothing
|
||||
&& Command.Sync.noContentOption o == Nothing =
|
||||
o { Command.Sync.contentOption = Just True }
|
||||
| otherwise = o
|
||||
Command.Sync.seek' o
|
||||
|
|
|
@ -152,10 +152,14 @@ optParser mode desc = SyncOptions
|
|||
( long "not-only-annex"
|
||||
<> help "operate on git branches as well as annex"
|
||||
)
|
||||
<*> unlessmode [SyncMode] False (switch
|
||||
( long "commit"
|
||||
<> help "commit changes to git"
|
||||
))
|
||||
<*> case mode of
|
||||
SyncMode -> switch
|
||||
( long "commit"
|
||||
<> help "commit changes to git"
|
||||
)
|
||||
PushMode -> pure False
|
||||
PullMode -> pure False
|
||||
AssistMode -> pure True
|
||||
<*> unlessmode [SyncMode] True (switch
|
||||
( long "no-commit"
|
||||
<> help "avoid git commit"
|
||||
|
|
Loading…
Add table
Reference in a new issue