on ‎2021 Aug 04 6:16 PM
Hello SAP's gurus
I try to synchronize my local project with my repository in GitHub.
When I try to perform Pull or Fetch, SAP Web IDE shows me the next error message: Cannot get committed changes while trying to read the field 'w1' of a null object loaded from local variable 'toFind':


What am I doing wrong?
Best regards.
Request clarification before answering.
draymond It probably happens because you are using github.com which switched from master to main default branch. When you Initialize Local git repository, it is created with default branch master, while you are trying to fetch a git repository with default branch main. It fails simply because master branch doesn't exist in the remote repository. There are 2 ways to solve it:
1. in github.com rename main to master.
2. in Web IDE create main branch and delete master branch. if you choose this way, before creating main branch create commit with changed files
Regards,
Rima
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not sure if this was the right thing todo but I was just setting up the git on one of my projects and experienced the bespoke error. We have Bitbucket On-Premise and that also uses "main" as default branch name (at least in our setting).
Here's what I did to solve
This then automatically pushes the already commited changes to the remote branch
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same issue, that I am able to clone from the repository, but I cannot perform any other git operation afterwards - like push, or fetch. I am getting the following error on the Web IDE console: 'Project projname: Fetch request failed. https://git.enterprise.com/team/reponame.git: 502 Bad Gateway'. Did you guys find a solution?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For what it's worth, I'm experiencing the same error during a fetch triggered by Set Remote on a local repository. I am able to clone the same remote repo without any error, however.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
pale Did you manage to resolve this issue? Does it happen if you clone the project again and try to fetch it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 6 | |
| 4 | |
| 3 | |
| 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.