Git-subrepo: Can't pull

Created on 13 Jan 2019  路  2Comments  路  Source: ingydotnet/git-subrepo

When I try to pull a sub repo via command: git subrepo pull eric-tmp, got error:

git-subrepo: There is already a worktree with branch subrepo/eric-tmp.
Use the --force flag to override this check or perform a subrepo clean
to remove the worktree.

Don't understand why this happen ? The subrepo version is 0.4.0.

BTW, really can't find a simple & working tutorial for git-subrepo on internet.

Question

Most helpful comment

Here is a short intro:
https://github.com/ingydotnet/git-subrepo/wiki/Basics

You can try to run git subrepo clean eric-tmp and then retry your pull command.

All 2 comments

Here is a short intro:
https://github.com/ingydotnet/git-subrepo/wiki/Basics

You can try to run git subrepo clean eric-tmp and then retry your pull command.

I get the same message, and don't understand why the subrepo needs "cleaning" before being able to run pull?

With normal git, as long as you have your index and working-tree committed/resolved, git pull works, correct? (at least that's been my experience as far as I've used it)

So what is the extra complication that occurs when using git subrepo pull?

@grimmySwe Is there a succinct way of explaining why the error message occurs, despite a committed/resolved index and working-tree? Or is it too complicated to explain without existing background knowledge?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

keithn picture keithn  路  5Comments

varac picture varac  路  4Comments

qwertie picture qwertie  路  6Comments

nandbert picture nandbert  路  4Comments

danielbsig picture danielbsig  路  7Comments