Unable to fetch from remote repository, some local refs could not be updated
問題
In the Administration Page > Repositories
> Repository
a blue box is showing the following ERROR
:
Unable to fetch from remote repository: ssh://<GIT_USER>@<GIT_HOST>:7999/<PROJECT_NAME>/<REPOSITORY_NAME>.git - [error: unable to resolve reference refs/heads/release/v4.3.0: Not a directory, From ssh://<GIT_USER>@<GIT_HOST>:7999/<PROJECT_NAME>/<REPOSITORY_NAME>.git, ! [new branch] release/v4.3.0 -> release/v4.3.0 (unable to update local ref), error: some local refs could not be updated; try running, 'git remote prune ssh://<GIT_USER>@<GIT_HOST>:7999/<PROJECT_NAME>/<REPOSITORY_NAME>.git' to remove any old, conflicting branches]
診断
Running the git remote prune ssh://<GIT_USER>@<GIT_HOST>:7999/<PROJECT_NAME>/<REPOSITORY_NAME>.git
does not solve the problem.
原因
This happens because the clone of the GIT Repository
in Fisheye/Crucible is not updated with the recent Branches
updates.
ソリューション
Re-clone the GIT clone
from FishEye/Crucible:
- Stop Fisheye/Crucible
- Delete the <FISHEYE_INST>/var/cache/<REPO_NAME>
/clone
directory - Start Fisheye/Crucible
This will force Fisheye/Crucible to pull the recent changes from the Remote Repository and create a live copy of that Repository.
After this the problem should disappear from the Repositories Page
and the indexing will happen normally.