Try "got commit --amend", remove the Change-Id line and save.
Then push again.
It should work.
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
I thought you were trying to push to a different branch.
> 4. git push remote HEAD:refs/for/master (Error no changes detected)
Is the exact error message? I can’t find any such error message in the source code. The closest I find is “no changes made”.
This error is returned when:
A pushed commit is considered to be identical to the current patch
set if
- the files in the commit,
- the commit message,
- the author of the commit and
- the parents of the commit
are all identical.
Are you sure all your changed files are added? What does “git status” say?
Does it work if you make any change to the commit message?
I’ve just had this error which I guess is the same one you’re experiencing.
$ git push upstream HEAD:refs/for/master
remote: Receiving objects: 100% (29/29)
remote: Resolving deltas: 100% (15/15)
remote: Processing changes: refs: 1, done
To https://gerrit.googlesource.com/gerrit
! [remote rejected] HEAD -> refs/for/master (no changes made)
error: failed to push some refs to 'https://gerrit.googlesource.com/gerrit'
In my case I did:
Cherry pick change A
Make edits, commit, push
Cherry pick change B (on top of A)
Make edits to change B, commit, push
I think it’s failing because on the second push the content of change A is identical to the first push. After doing an interactive rebase and changing the commit message of A, the push works.
--
Yes and then you get a whole new patch series, that is what I did. But
it ends up breaking the patch sets.