GNOME Bugzilla – Bug 590094
git hook backtrace
Last modified: 2009-07-29 07:34:19 UTC
I created an empty git repo and it got a bit scared: $ ssh hadess@git.gnome.org create-repository hardware-device-themes Initialized empty shared Git repository in /git/hardware-device-themes.git/ Updating the repository list... done You can now import an existing Git repository using: git push --exec=import ssh://hadess@git.gnome.org/git/hardware-device-themes refs/heads/* refs/tags/* When you are finished importing and everything looks good, run: ssh hadess@git.gnome.org finish-import hardware-device-themes $ ssh hadess@git.gnome.org finish-import hardware-device-themes Clearing pending flag on /git/hardware-device-themes.git Updating the repository list... done hardware-device-themes is now ready for use $ git clone gnome:hardware-device-themes Initialized empty Git repository in /home/hadess/Projects/Cvs/hardware-device-themes/.git/ warning: You appear to have cloned an empty repository. $ cd hardware-device-themes $ touch README $ vi README $ git add README $ git commit -a [master (root-commit) 1f44dc9] First commit 1 files changed, 13 insertions(+), 0 deletions(-) create mode 100644 README $ git push origin master Counting objects: 3, done. Delta compression using 2 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 499 bytes, done. Total 3 (delta 0), reused 0 (delta 0) To ssh://git.gnome.org/git/hardware-device-themes * [new branch] master -> master Use of uninitialized value in concatenation (.) or string at /home/admin/gitadmin-bin/ciabot.pl line 155. error: Object b1caa768cec4b1091f0ff58551bd05969acd26fd is a tree, not a commit fatal: ambiguous argument '1f44dc93550b36c798c88c3255c90d921939b9a3^..1f44dc93550b36c798c88c3255c90d921939b9a3': unknown revision or path not in the working tree. Use '--' to separate paths from revisions Traceback (most recent call last):
+ Trace 216688
main()
change.prepare()
self.added_commits = rev_list_commits(first_detailed_commit + "^.." + self.newrev)
lines = git.rev_list(*args, **kwargs_copy)
return git_run(command, *args, **kwargs)
raise CalledProcessError(process.returncode, " ".join(to_run))
error: hooks/post-receive exited with error code 1 $ git push Everything up-to-date $ git pull --rebase Current branch master is up to date.
I submitted a patch to fix this after running into the same problem when we added the gnome-post-receive-email hooks to Fedora Infrastructure's puppet setup. The patch is posted to the gnome-infrastructure list at: http://mail.gnome.org/archives/gnome-infrastructure/2009-July/msg00044.html It's part of a small series of patches that start at: http://mail.gnome.org/archives/gnome-infrastructure/2009-July/msg00042.html
Committed 3 patches by Todd, including a fix for this.