Code

git-svn: un-break "git svn rebase" when log.abbrevCommit=true
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sun, 12 Feb 2012 00:23:06 +0000 (00:23 +0000)
committerEric Wong <normalperson@yhbt.net>
Tue, 21 Feb 2012 21:37:31 +0000 (21:37 +0000)
commit83cf21f9852f22f5a46a48e3b636ecc6403a717e
tree84da9e6c18cdf5200e0335de50d8cb3946d32085
parentb380e3a79211f59adf6761968ff76c8d6535f72e
git-svn: un-break "git svn rebase" when log.abbrevCommit=true

Change git-svn to use git-rev-list(1) instead of git-log(1) since the
latter is porcelain that'll cause "git svn rebase" to fail completely
if log.abbrevCommit is set to true in the configuration.

Without this patch the code will fail to parse a SHA1, and then just
spew a bunch of "Use of uninitialized value $hash in string eq"
warnings at "if ($c && $c eq $hash) { ..." and never do anything
useful.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Helped-by: Jonathan Nieder <jrnieder@gmail.com>
Acked-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl