Skip to contentSkip to conversation

ambiguous argument '...': unknown revision or path not in the working tree

DISCUSSION Sven Joachim 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

I've got a strange error message in 'git push':

,----

| % git push
| Counting objects: 47, done.
| Delta compression using up to 2 threads.
| Compressing objects: 100% (24/24), done.
| Writing objects: 100% (24/24), 4.37 KiB, done.
| Total 24 (delta 22), reused 0 (delta 0)
| fatal: ambiguous argument '3bbc6def8a06e4411bee130b811ff9507e90503d:debian/changelog': unknown revision or path not in the working tree.
| Use '--' to separate paths from revisions
| To git+ssh://git.debian.org/git/collab-maint/ncurses.git
|    2fec7db..3bbc6de  HEAD -> upstream

`----

Indeed debian/changelog is not in the working tree, it is not in the current branch (upstream) at all, although it exists in the master branch. Default is to push the current branch:

,----

| % git config --get push.default 
| current
| % git --version
| git version 1.6.6

`----

Despite the error message, the push was apparently successful; the repository I push to can be found at
http://git.debian.org/?p=collab-maint/ncurses.git.

Sven

#1 lore raw
Quoted 11 lines · Sven Joachim

I've got a strange error message in 'git push':

,----

| % git push
| Counting objects: 47, done.
| Delta compression using up to 2 threads.
| Compressing objects: 100% (24/24), done.
| Writing objects: 100% (24/24), 4.37 KiB, done.
| Total 24 (delta 22), reused 0 (delta 0)
| fatal: ambiguous argument '3bbc6def8a06e4411bee130b811ff9507e90503d:debian/changelog': unknown revision or path not in the working tree.
| Use '--' to separate paths from revisions

I think there is nothing "fatal" in your git setup, other than that the repository at the remote end you are pushing into has a broken hook script (perhaps update, post-receive, or post-update) that is issuing the error message. I would raise the issue with the owner of the repository if I were you.

#2 lore raw
Quoted 14 lines · Junio C Hamano
Quoted 11 lines · Sven Joachim

I've got a strange error message in 'git push':

,----

| % git push
| Counting objects: 47, done.
| Delta compression using up to 2 threads.
| Compressing objects: 100% (24/24), done.
| Writing objects: 100% (24/24), 4.37 KiB, done.
| Total 24 (delta 22), reused 0 (delta 0)
| fatal: ambiguous argument '3bbc6def8a06e4411bee130b811ff9507e90503d:debian/changelog': unknown revision or path not in the working tree.
| Use '--' to separate paths from revisions
Quoted 4 lines

I think there is nothing "fatal" in your git setup, other than that the repository at the remote end you are pushing into has a broken hook script (perhaps update, post-receive, or post-update) that is issuing the error message.

Thanks, that hits the nail on the head.

Quoted 1 line

I would raise the issue with the owner of the repository if I were you.

I've opened a support ticket.

Sven