# git-subtree pull issue

1 messages from 2016-09-16 to 2016-09-16. Participants: Alexander Inyukhin.
Thread: https://gitlist.dev/t/44101

## Alexander Inyukhin, 2016-09-16 22:39

Subject: git-subtree pull issue
Message-ID: <20160916223926.irf7q4ugjnwwmado@shurick.grid.su>
URL: https://gitlist.dev/e/20160916223926.irf7q4ugjnwwmado%40shurick.grid.su

```
When git-subtree is pulling data using the tag reference,
it writes the tag's sha1 into a metadata.
It could be a problem next time, since this commit object
is not a part of main tree, and could be lost.

Steps to reproduce:

# add some stuff to a existing tree
# history will refer to v0.1 tag object instead of v0.1^{commit}
git subtree add --squash -P dir/ repo v0.1
# prune all dangling objects including external v0.1 tag
git gc --aggressive --prune=all
# this will fail
git subtree pull --squash -P dir/ repo v0.2

```
