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

3 messages from 2010-01-17 to 2010-01-18. Participants: Sven Joachim, Junio C Hamano.
Thread: https://gitlist.dev/t/22257

## Sven Joachim, 2010-01-17 09:46

Subject: ambiguous argument '...': unknown revision or path not in the working tree
Message-ID: <87ska5vzbs.fsf@turtle.gmx.de>
URL: https://gitlist.dev/e/87ska5vzbs.fsf%40turtle.gmx.de

```
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, 2010-01-18 06:59

Subject: Re: ambiguous argument '...': unknown revision or path not in the working tree
Message-ID: <7v3a23ucdm.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7v3a23ucdm.fsf%40alter.siamese.dyndns.org
In-Reply-To: <87ska5vzbs.fsf@turtle.gmx.de>

```
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.  I would raise the issue with the owner of the repository if I
were you.

```

## Sven Joachim, 2010-01-18 08:48

Subject: Re: ambiguous argument '...': unknown revision or path not in the working tree
Message-ID: <87vdezol1i.fsf@turtle.gmx.de>
URL: https://gitlist.dev/e/87vdezol1i.fsf%40turtle.gmx.de
In-Reply-To: <7v3a23ucdm.fsf@alter.siamese.dyndns.org>

```
On 2010-01-18 07:59 +0100, Junio C Hamano wrote:

> 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

```
