[BUG] git push --quiet fails with older versions
- From
Tobias Ulmer <tobiasu@tmux.org>
- Date
- Sep 3, 2011, 10:57 UTC
- Message-ID
- <20110903105723.GA16304@tin.tmux.org>
Hi guys,
my distro updated git to 1.7.6.1. Now git push --quiet, used in various scripts, blows up against 1.7.6. I don't know how backwards compatible git tries to be, but in my opinion that seems like a regression for a patchlevel release.
The problem seems to be that the remote git receive-pack does not understand --quiet. Maybe it is possible to check for the remote version before sending incompatible commandline parameters?
Quick demo:
lead:ssh$ git version git version 1.7.6.1 lead:ssh$ git push Everything up-to-date lead:ssh$ git push -q usage: git receive-pack <git-dir> fatal: The remote end hung up unexpectedly
The remote uses: radon:~$ git version git version 1.7.6
Please keep me in CC, I'm not subscribed.
Tobias