on ‎2020 Mar 05 8:48 AM
hi experts,
I cloned the remote repo to my 2 local repos. in the case of 1st push, I can do it successfully. But when I tried to do some commit in repo 1 and not push. Then I do another commit in repo2 and push and submit in Gerrit. thirdly, I switch back to repo1 and do pull + push again, I will get this eeror about push failed below.
I am wondering how to troubleshot this kind of errors?
BTW, after several testing with repository created on cloud platform, I found this issue does have something to do with the Gerrit Configuration as someone mentioned in another post. I didnot enable Gerrit condguration this time and I got no error in the repo from cloud platform at all, I guess the remote repo is not Gerrit-relevant on cloud platform. And if the Gerrit configuration is enabled, then error occurs.
But in my demo project from Project Portal, I have switched on Gerrit configuration when I cloned the project. I still got errors during pushing sometimes.
-----------------------------------------------
to automatically insert a Change-Id, install the hook:
gitdir=$(git rev-parse --git-dir); scp -p -P 29418 i068171@git.wdf.sap.corp:hooks/commit-msg ${gitdir}/hooks/
and then amend the commit:
git commit --amend --no-edit
Could not push refspec master -> refs/for/master to the branch origin. Try to merge the remote changes using pull, and then push again.
Error Status: REJECTED_OTHER_REASON, Error message: commit 87a550f: missing Change-Id in message footer. 4:35:53 PM (git) Project zzcn_cain_test-3: Push request failed
Request clarification before answering.
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.