cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP WEBIDE Git Push failed

cain_sun
Product and Topic Expert
Product and Topic Expert
0 Likes
954

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?

  • is it possible to open the command line in WEBIDE?
  • is it possible to check in the Github for the projects in the project portal for how many files in which branches are there?

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

Accepted Solutions (0)

Answers (0)