Using install and --fetch
, gitman does not reset local branch to the remote version
#258
Labels
--fetch
, gitman does not reset local branch to the remote version
#258
Gitman version used: v2.3.2
Python version: v3.9.4
If we already used
gitman install
to clone a repo, then we perform a change in a branch on the remote git repository, the next gitman install command will not integrate the new changes of the remote branch if the history has been rewritten.Considering this example with
my-repo
using a custom branchmy-branch
.Let's imagine that the upstream version of
my-branch
has changed and the commits and/or history have been rewritten:In that case,
gitman install --fetch --force
will not reset local branchmy-branch
with the content of the remote branch.The output of gitman is the following:
We can see that the local branch is not rebased/reset on the remote branch (there is no for instance
git reset --hard origin/my-branch
).IMHO, gitman should always follow the remote version of the branch with the information specified in
gitman.yml
. Or, at least, having an option to specify this behavior.Note: my comment may also be applicable on other commands (maybe
gitman update
?).The text was updated successfully, but these errors were encountered: