only push when needsinit

This commit is contained in:
Joey Hess 2015-07-27 11:36:39 -04:00
parent 49d8cb1bf6
commit 52ecf232fb

View file

@ -506,6 +506,7 @@ prepSsh' needsinit origsshdata sshdata keypair a
{- To ensure the repository is initialized, try to push the
- git-annex branch to it. Then git-annex-shell will see
- the branch and auto-initialize. -}
when needsinit $ do
void $ liftAnnex $ inRepo $ Git.Command.runBool
[ Param "push"
, Param (genSshUrl sshdata)