How to solve this ?
i entered command bench update --reset
but this new error popup
fatal: ambiguous argument 'upstream/version-14': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
ERROR: git reset --hard upstream/version-14
subprocess.CalledProcessError: Command 'git reset --hard upstream/version-14' returned non-zero exit status 128.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/vul/.local/bin/bench", line 8, in <module>
sys.exit(cli())
File "/home/vul/.local/lib/python3.10/site-packages/bench/cli.py", line 132, in cli
bench_command()
File "/home/vul/.local/lib/python3.10/site-packages/bench/commands/update.py", line 59, in update
update(
File "/home/vul/.local/lib/python3.10/site-packages/bench/utils/bench.py", line 442, in update
pull_apps(apps=apps, bench_path=bench_path, reset=reset)
File "/home/vul/.local/lib/python3.10/site-packages/bench/app.py", line 659, in pull_apps
bench.run(reset_cmd, cwd=app_dir)
File "/home/vul/.local/lib/python3.10/site-packages/bench/bench.py", line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
File "/home/vul/.local/lib/python3.10/site-packages/bench/utils/__init__.py", line 158, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: git reset --hard upstream/version-14
Thanks
Go to - cd apps/hrms
Command -
git status
git reset --hard
if any untracked files that you changed then it should be moved on custom app.
if you want to remove it with directory then run
Command -
git clean -f -d
solved