When running bench update --reset i face issues in HRMS

bench update --reset
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript

  • branch version-14 → FETCH_HEAD
    Backing up sites…
    Backup Summary for bahl.localhost at 2023-07-11 14:49:43.346624
    Config : ./bahl.localhost/private/backups/20230711_144941-bahl_localhost-site_config_backup.json 234.0B
    Database: ./bahl.localhost/private/backups/20230711_144941-bahl_localhost-database.sql.gz 2.1MiB
    Backup for Site bahl.localhost has been successfully completed
    Updating apps source…
    $ git fetch --depth=1 --no-tags upstream version-14
    remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
    From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
  • branch version-14 → FETCH_HEAD
    $ git reset --hard upstream/version-14
    HEAD is now at 326c8a4be1 chore(release): Bumped to Version 14.40.2
    $ git reflog expire --all
    $ git gc --prune=all
    Enumerating objects: 334813, done.
    Counting objects: 100% (334813/334813), done.
    Delta compression using up to 4 threads
    Compressing objects: 100% (71808/71808), done.
    Writing objects: 100% (334813/334813), done.
    Total 334813 (delta 261373), reused 334813 (delta 261373), pack-reused 0
    Checking connectivity: 334813, done.
    $ find . -name “*.pyc” -delete
    $ git fetch --depth=1 --no-tags upstream version-14
    remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
    From GitHub - frappe/hrms: Open Source HR and Payroll Software
  • branch version-14 → FETCH_HEAD
    $ git reset --hard upstream/version-14
    fatal: ambiguous argument ‘upstream/version-14’: unknown revision or path not in the working tree.
    Use ‘–’ to separate paths from revisions, like this:
    ‘git […] – […]’
    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/frappe/.local/bin/bench”, line 8, in
sys.exit(cli())
File “/home/frappe/.bench/bench/cli.py”, line 132, in cli
bench_command()
File “/home/frappe/.bench/bench/commands/update.py”, line 59, in update
update(
File “/home/frappe/.bench/bench/utils/bench.py”, line 442, in update
pull_apps(apps=apps, bench_path=bench_path, reset=reset)
File “/home/frappe/.bench/bench/app.py”, line 659, in pull_apps
bench.run(reset_cmd, cwd=app_dir)
File “/home/frappe/.bench/bench/bench.py”, line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
File “/home/frappe/.bench/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