]> git.pld-linux.org Git - packages/rpm-build-tools.git/commit
Fix test of existing tags with shallow fetch
authorKacper Kornet <draenog@pld-linux.org>
Thu, 12 May 2011 08:49:25 +0000 (09:49 +0100)
committerKacper Kornet <draenog@pld-linux.org>
Thu, 12 May 2011 14:53:04 +0000 (15:53 +0100)
commitcfce64d32fa65098287400c9087b6427bb88d9b3
treef85c2d62a78fa9b1b9ac7e005a9e619717fb7b72
parent4cffdce417b8ee146f29a8924cf95f5564964e85
Fix test of existing tags with shallow fetch

In case of shallow fetch, there is no local information about all
existing tags. Therefore the test if the tag already exists, should use
git ls-remote in this case. It enables to fail earlier before the try to
push existing tag.

Unfortunately git-ls-remote returns with 0 even if the refs is not
found. So it is necessary to check if its output is not empty.
builder.sh
This page took 0.035195 seconds and 4 git commands to generate.