sync: Ensure that pending changes to git-annex branch are committed when in direct mode. (Fixing a very minor reversion.)
This commit is contained in:
parent
ec20e87bab
commit
4c429ad7ee
3 changed files with 20 additions and 16 deletions
|
@ -122,22 +122,22 @@ syncRemotes rs = ifM (Annex.getState Annex.fast) ( nub <$> pickfast , wanted )
|
||||||
fastest = fromMaybe [] . headMaybe . Remote.byCost
|
fastest = fromMaybe [] . headMaybe . Remote.byCost
|
||||||
|
|
||||||
commit :: CommandStart
|
commit :: CommandStart
|
||||||
commit = next $ next $ ifM isDirect
|
commit = next $ next $ do
|
||||||
( do
|
showStart "commit" ""
|
||||||
showStart "commit" ""
|
Annex.Branch.commit "update"
|
||||||
void stageDirect
|
ifM isDirect
|
||||||
void preCommitDirect
|
( do
|
||||||
commitStaged Git.Branch.ManualCommit commitmessage
|
void stageDirect
|
||||||
, do
|
void preCommitDirect
|
||||||
showStart "commit" ""
|
commitStaged Git.Branch.ManualCommit commitmessage
|
||||||
Annex.Branch.commit "update"
|
, do
|
||||||
inRepo $ Git.Branch.commitQuiet Git.Branch.ManualCommit
|
inRepo $ Git.Branch.commitQuiet Git.Branch.ManualCommit
|
||||||
[ Param "-a"
|
[ Param "-a"
|
||||||
, Param "-m"
|
, Param "-m"
|
||||||
, Param commitmessage
|
, Param commitmessage
|
||||||
]
|
]
|
||||||
return True
|
return True
|
||||||
)
|
)
|
||||||
where
|
where
|
||||||
commitmessage = "git-annex automatic sync"
|
commitmessage = "git-annex automatic sync"
|
||||||
|
|
||||||
|
|
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -14,6 +14,8 @@ git-annex (5.20140832) UNRELEASED; urgency=medium
|
||||||
* Fix transfer lock file FD leak that could occur when two separate
|
* Fix transfer lock file FD leak that could occur when two separate
|
||||||
git-annex processes were both working to perform the same set of
|
git-annex processes were both working to perform the same set of
|
||||||
transfers.
|
transfers.
|
||||||
|
* sync: Ensure that pending changes to git-annex branch are committed
|
||||||
|
when in direct mode. (Fixing a very minor reversion.)
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Thu, 04 Sep 2014 16:17:22 -0400
|
-- Joey Hess <joeyh@debian.org> Thu, 04 Sep 2014 16:17:22 -0400
|
||||||
|
|
||||||
|
|
|
@ -87,3 +87,5 @@ echo "Why isn't location info available even after sync? (press Enter)"
|
||||||
### What version of git-annex are you using? On what operating system?
|
### What version of git-annex are you using? On what operating system?
|
||||||
|
|
||||||
git-annex version: 5.20140716-g8c14ba8
|
git-annex version: 5.20140716-g8c14ba8
|
||||||
|
|
||||||
|
> [[fixed|done]] --[[Joey]]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue