threads / discuss / 22257

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

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

## tl;dr

3 messages between Jan 17, 2010 and Jan 18, 2010.

replies: 2people: 2as markdown or json

Sven Joachim· Jan 17, 2010, 09:46 UTC · lore
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
Junio C Hamano· Jan 18, 2010, 06:59 UTC · re: Sven Joachim · lore

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

Sven Joachim <svenjoac@gmx.de> writes:
Show 11 quoted lines
> 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.

Sven Joachim· Jan 18, 2010, 08:48 UTC · re: Junio C Hamano · lore

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

On 2010-01-18 07:59 +0100, Junio C Hamano wrote:
Show 18 quoted lines
> Sven Joachim <svenjoac@gmx.de> writes:
>
>> 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.
Thanks, that hits the nail on the head.
> I would raise the issue with the owner of the repository if I were you.
I've opened a support ticket.
Sven

← back to recent threads