hggitforge issues
https://forge.extranet.logilab.fr/open-source/hggitforge/-/issues
2020-11-05T13:09:26Z
https://forge.extranet.logilab.fr/open-source/hggitforge/-/issues/3
Cannot import the same remote branch after a gfpull
2020-11-05T13:09:26Z
Aurélien Lubert
Cannot import the same remote branch after a gfpull
I've imported the `AAA` branch from another fork repository with the `gfremote` command. When using the `gfpull` command, the branch is correctly removed:
```
Fetching upstream remote
Pushing master branch to Git fork repository
Fetching...
I've imported the `AAA` branch from another fork repository with the `gfremote` command. When using the `gfpull` command, the branch is correctly removed:
```
Fetching upstream remote
Pushing master branch to Git fork repository
Fetching all branches from Git fork repository
Updating Mercurial repository
Publishing master bookmark
Pruning AAA bookmark and ancestors
Deleting AAA bookmark
```
But when I try to retrieve again the branch with the same command (same name):
```
Fetching branch AAA to AAA from specified remote Git repository
Updating Mercurial repository
pulling from ~/repository/.hg/git.git
importing git objects into hg
abort: you appear to have run strip - please run hg git-cleanup
Command exited with code 255
```
Using the specified command do not resolve the issue and when we run the `gfpull` command again:
```
Fetching upstream remote
Pushing master branch to Git fork repository
Fetching all branches from Git fork repository
Updating Mercurial repository
Publishing master bookmark
Pruning AAA bookmark and ancestors
abort: unknown revision 'cpr'!
Command exited with code 255
Couldn't prune, ignoring
Deleting AAA bookmark
abort: bookmark 'AAA' does not exist
Command exited with code 255
```