On 07/27/2009 03:38 PM, Devan Goodwin wrote:
You may notice a huge batch of script output when running git push, this
is just some temporary verbosity while we debug this issue:

$ git push --tags Counting
objects: 1, done. Writing objects: 100% (1/1), 234 bytes, done. Total 1
(delta 0), reused 0 (delta 0) fatal: Invalid revision range
0000000000000000000000000000000000000000..9819b729122602f79cf144954f7f0e478e9622dd
To ssh://[email protected]/git/spacewalk.git/ * [new tag]
spacewalk-proxy-installer-0.6.16-1 ->  spacewalk-proxy-installer-0.6.16-1

Should you happen to see this error when pushing a tag, please reply
here with the output from the script so we can pass it along to Fedora
Infra. We'll disable the output soon.

Fedora Infra ticket 1362 if anyone is interested.

Thanks,

Devan

Hello all,

I believe this is caused by your pre-receive hook:
https://fedorahosted.org/fedora-infrastructure/attachment/ticket/1342/pre-receive
https://fedorahosted.org/fedora-infrastructure/ticket/1342

I just set up a test repo with that hook and pushed a few tags and it gave the same error:

[jro...@sis-jrr foo]$ git push --tags
Counting objects: 1, done.
Writing objects: 100% (1/1), 174 bytes, done.
Total 1 (delta 0), reused 0 (delta 0)
+ read old_sha1 new_sha1 refname
+ git rev-list --parents 0000000000000000000000000000000000000000..35f792639eb4ddcef04ba65f940fca8d3086921b
+ read sha1 parents
fatal: Invalid revision range 0000000000000000000000000000000000000000..35f792639eb4ddcef04ba65f940fca8d3086921b
+ '[' 0 -ne 0 ']'
+ :
+ read old_sha1 new_sha1 refname
+ exit 0
refs/tags/project-0.0.3: 0000000000000000000000000000000000000000 -> 35f792639eb4ddcef04ba65f940fca8d3086921b
To ssh://production-ps/~/foo.git
 * [new tag]         project-0.0.3 -> project-0.0.3


Maybe add something like...
while read old_sha1 new_sha1 refname ; do
+        if expr "$old_sha1" : '0*$' > /dev/null ; then
+                continue
+        fi

Joshua Roys

_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to