avoid transferrer committing the git-annex branch on shutdown
authorJoey Hess <joeyh@joeyh.name>
Fri, 11 Dec 2020 20:16:07 +0000 (16:16 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 11 Dec 2020 20:16:07 +0000 (16:16 -0400)
The parent is will do it when it shuts down, and having both of them
trying to do it at the same time seems like something good to avoid.

Command/Transferrer.hs

index 116c64c5a323ded6d23ce3300afe35a0de6fbb56..0687305e71535cd76348e0ab218d7450557616d8 100644 (file)
@@ -22,7 +22,7 @@ import Types.Transferrer
 import qualified Utility.SimpleProtocol as Proto
 
 cmd :: Command
-cmd = command "transferrer" SectionPlumbing "transfers content"
+cmd = noCommit $ command "transferrer" SectionPlumbing "transfers content"
        paramNothing (withParams seek)
 
 seek :: CmdParams -> CommandSeek