Fatal: Invalid refspec '+refs/heads/*:refs/remotes/upstream/*

Hi Pratik Vyas
As per your suggestion i have don

chandu@myerp:~/eipl/frappe-bench/apps/frappe$
cd apps/frappe
git config --add remote.upstream.fetch '+refs/heads/:refs/remotes/upstream/
git fetch upstream
cd -
cd apps/erpnext
git config --add remote.upstream.fetch '+refs/heads/:refs/remotes/upstream/
git fetch upstream
cd -
But til that date i am getting this error, waiting for your reply from you… please help me to out

fatal: Invalid refspec ‘+refs/heads/:refs/remotes/upstream/
git fetch upstream
cd -
cd apps/erpnext
git config --add remote.upstream.fetch +refs/heads/:refs/remotes/upstream/
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/chandu/bench-repo/bench/cli.py”, line 56, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return processresult(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/chandu/bench-repo/bench/cli.py”, line 221, in update
version_upgrade = is_version_upgrade()
File “/home/chandu/bench-repo/bench/app.py”, line 97, in is_version_upgrade
fetch_upstream(frappe_dir)
File “/home/chandu/bench-repo/bench/app.py”, line 123, in fetch_upstream
return exec_cmd(“git fetch upstream”, cwd=repo_dir)
File “/home/chandu/bench-repo/bench/utils.py”, line 76, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘git fetch upstream’ returned non-zero exit status 128

Can you run ,

bench switch-to-master
bench update

i tried as same but error .
same error (‘git fetch upstream’ returned non-zero exit status 128)

chandu@myerp:~/eipl/frappe-bench$ bench switch-to-master
fatal: Invalid refspec ‘+refs/heads/:refs/remotes/upstream/
git fetch upstream
cd -
cd apps/erpnext
git config --add remote.upstream.fetch +refs/heads/:refs/remotes/upstream/
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/chandu/bench-repo/bench/cli.py”, line 56, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, *ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(args, **kwargs)
File “/home/chandu/bench-repo/bench/cli.py”, line 297, in _switch_to_master
switch_to_master(upgrade=upgrade)
File “/home/chandu/bench-repo/bench/app.py”, line 171, in switch_to_master
switch_branch(‘master’, apps=apps, bench=bench, upgrade=upgrade)
File “/home/chandu/bench-repo/bench/app.py”, line 145, in switch_branch
version_upgrade = is_version_upgrade(bench=bench, branch=branch)
File “/home/chandu/bench-repo/bench/app.py”, line 97, in is_version_upgrade
fetch_upstream(frappe_dir)
File “/home/chandu/bench-repo/bench/app.py”, line 123, in fetch_upstream
return exec_cmd(“git fetch upstream”, cwd=repo_dir)
File “/home/chandu/bench-repo/bench/utils.py”, line 76, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘git fetch upstream’ returned non-zero exit status 128

chandu@myerp:~/eipl/frappe-bench$ bench update
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 5 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (5/5), done.
From GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps
2e25af2…39fbb25 master → origin/master
Updating 2e25af2…39fbb25
Fast-forward
bench/cli.py | 15 ++++++++++±—
bench/utils.py | 41 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 52 insertions(+), 4 deletions(-)
fatal: Invalid refspec '+refs/heads/
:refs/remotes/upstream/

git fetch upstream
cd -
cd apps/erpnext
git config --add remote.upstream.fetch +refs/heads/
:refs/remotes/upstream/*’
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/chandu/bench-repo/bench/cli.py”, line 56, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/chandu/bench-repo/bench/cli.py”, line 221, in update
version_upgrade = is_version_upgrade()
File “/home/chandu/bench-repo/bench/app.py”, line 97, in is_version_upgrade
fetch_upstream(frappe_dir)
File “/home/chandu/bench-repo/bench/app.py”, line 123, in fetch_upstream
return exec_cmd(“git fetch upstream”, cwd=repo_dir)
File “/home/chandu/bench-repo/bench/utils.py”, line 79, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘git fetch upstream’ returned non-zero exit status 128
chandu@myerp:~/eipl/frappe-bench$

Hi Pratik Vyas
long pending error please help me to resolve my issue with your help. please please

my git account tallurichandu, is it normal (image and output added)
chandu@myerp:~/bench-repo$ git branch

and my erp site