savannah-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-help-public] Allowing a non-fast-forward Git push?


From: Neil Jerram
Subject: [Savannah-help-public] Allowing a non-fast-forward Git push?
Date: Thu, 04 Jun 2009 00:04:56 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Hi there,

I just tried a non-fast-forward push to Guile's Git repo, to clean up
a recent commit error, and it was rejected:

address@hidden:~/SW/Guile/git$ git push --force
Counting objects: 103, done.
Compressing objects: 100% (74/74), done.
Writing objects: 100% (76/76), 16.88 KiB, done.
Total 76 (delta 58), reused 4 (delta 2)
error: denying non-fast forward refs/heads/master (you should pull first)
To ssh://address@hidden/srv/git/guile.git
 ! [remote rejected] master -> master (non-fast forward)
error: failed to push some refs to 'ssh://address@hidden/srv/git/guile.git'

I'm guessing this is because the repo has denynonfastforward set to
TRUE.  Can you confirm or deny that?

In any case, can you advise what we can do so as to allow this
non-fast-forward push to succeed?

Thanks,
      Neil


--- Begin Message --- Subject: Re: low-hanging SRFI fruit (SRFI-98) Date: Wed, 03 Jun 2009 23:58:52 +0100 User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)
Neil Jerram <address@hidden> writes:

> OK, I'm about to try sorting this out, which will change the last 2
> commits of the master branch.  Please hold off doing any pulling or
> pushing until I've done that and everything looks OK again.

OK, I reconstructed what I think master should be (as of right now,
including Andy's commits this evening), and tried to `git push
--force' that, but it was rejected by the server:

address@hidden:~/SW/Guile/git$ git push --force
Counting objects: 103, done.
Compressing objects: 100% (74/74), done.
Writing objects: 100% (76/76), 16.88 KiB, done.
Total 76 (delta 58), reused 4 (delta 2)
error: denying non-fast forward refs/heads/master (you should pull first)
To ssh://address@hidden/srv/git/guile.git
 ! [remote rejected] master -> master (non-fast forward)
error: failed to push some refs to 'ssh://address@hidden/srv/git/guile.git'

So to show my reconstruction, I pushed it as a new `njmaster' branch
instead.

I guess that the rejection above is caused either either by the repo's
denynonfastforward config being TRUE, or by a hook (such as the one
that sends changes to guile-commits) failing to handle the push.

I think it is worth sorting this out, so I'll ask the Savannah hackers
about doing whatever is needed so that the push can succeed.

(In the meantime, please feel free to add to either master or
njmaster.)

Regards,
        Neil

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]