After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 590094 - git hook backtrace
git hook backtrace
Status: RESOLVED FIXED
Product: sysadmin
Classification: Infrastructure
Component: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Sysadmins
GNOME Sysadmins
Depends on:
Blocks:
 
 
Reported: 2009-07-29 00:43 UTC by Bastien Nocera
Modified: 2009-07-29 07:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2009-07-29 00:43:23 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):
  • File "/home/admin/gitadmin-bin/gnome-post-receive-email", line 878 in ?
    main()
  • File "/home/admin/gitadmin-bin/gnome-post-receive-email", line 873 in main
    change.prepare()
  • File "/home/admin/gitadmin-bin/gnome-post-receive-email", line 239 in prepare
    self.added_commits = rev_list_commits(first_detailed_commit + "^.." + self.newrev)
  • File "/home/admin/gitadmin-bin/git.py", line 136 in rev_list_commits
    lines = git.rev_list(*args, **kwargs_copy)
  • File "/home/admin/gitadmin-bin/git.py", line 121 in f
    return git_run(command, *args, **kwargs)
  • File "/home/admin/gitadmin-bin/git.py", line 107 in git_run
    raise CalledProcessError(process.returncode, " ".join(to_run))
git.CalledProcessError: Command 'git rev-list --pretty=format:%s 1f44dc93550b36c798c88c3255c90d921939b9a3^..1f44dc93550b36c798c88c3255c90d921939b9a3' returned non-zero exit status 128
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.
Comment 1 Todd Zullinger 2009-07-29 00:52:51 UTC
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
Comment 2 Olav Vitters 2009-07-29 07:34:19 UTC
Committed 3 patches by Todd, including a fix for this.