use Branch.name instead of hard coding the branch name
Makes much more clear why ActionItemOther is being passed "git-annex".
This commit is contained in:
parent
3a05d53761
commit
2a3c2b1843
3 changed files with 11 additions and 6 deletions
|
@ -13,6 +13,7 @@ import qualified Git
|
|||
import qualified Git.Branch
|
||||
import Annex.CurrentBranch
|
||||
import Command.Sync (prepMerge, mergeLocal, mergeConfig, merge, SyncOptions(..))
|
||||
import Git.Types
|
||||
|
||||
cmd :: Command
|
||||
cmd = command "merge" SectionMaintenance
|
||||
|
@ -35,7 +36,7 @@ mergeAnnexBranch = starting "merge" ai si $ do
|
|||
Annex.Branch.commit =<< Annex.Branch.commitMessage
|
||||
next $ return True
|
||||
where
|
||||
ai = ActionItemOther (Just "git-annex")
|
||||
ai = ActionItemOther (Just (fromRef Annex.Branch.name))
|
||||
si = SeekInput []
|
||||
|
||||
mergeSyncedBranch :: CommandStart
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue