threads / discuss / 25920

git p4 submit always tries to re-apply every patch

Subject: git p4 submit always tries to re-apply every patch

## tl;dr

2 messages between Dec 2, 2010 and Dec 2, 2010.

replies: 1people: 2as markdown or json

thussvm· Dec 2, 2010, 02:30 UTC · lore

Whenever I run a git p4 submit after a git pull from the origin it tries to re-apply every commit, even ones that were already submitted previously (which results in self generated conflicts). What's interesting is that this works:

git p4 submit <--- submit some changes git p4 submit <--- no changes to submit, so it recognizes that it's up to date

but as soon as I throw in a git pull origin master (even if there is nothing new on the origin) it loses track and on the next submit it tries to re-apply EVERYTHING. For example:

git p4 submit <--- no changes to submit git pull origin master <--- no activity on the git server side so no changes applied git p4 submit <--- tries to re-apply all changes that were already submitted earlier

Is git pull origin master somehow wiping out git p4's notion of which changes have been applied and which haven't?

-- 
View this message in context: http://git.661346.n2.nabble.com/git-p4-submit-always-tries-to-re-apply-every-patch-tp5794578p5794578.html
Sent from the git mailing list archive at Nabble.com.
Tor Arvid Lund· Dec 2, 2010, 09:36 UTC · re: thussvm · lore

Re: git p4 submit always tries to re-apply every patch

On Thursday, December 2, 2010, thussvm <thuss@volunteermatch.org> wrote:
>
> Whenever I run a git p4 submit after a git pull from the origin it tries to
> re-apply every commit, even ones that were already submitted previously
> (which results in self generated conflicts).
Try "git p4 sync" before submitting.
    -- Tor Arvid
-- 
   -- Tor Arvid

← back to recent threads