Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags are not preserved after "git push" #29

Closed
giampaolo opened this issue May 27, 2014 · 1 comment
Closed

Tags are not preserved after "git push" #29

giampaolo opened this issue May 27, 2014 · 1 comment

Comments

@giampaolo
Copy link

I just run fast-export against my psutil repository:
https://code.google.com/p/psutil/source/checkout

fast-export.sh completes successfully and I can see all my tags exported into the new GIT repository:

giampaolo@UX32VD:/tmp/newgit$ git tags
release-0.1.0   Avoided to call distutils.core.setup() twice which caused setup.py to generate two .exe installers when running "setup.py bdist_wininst".
release-0.1.1   Get rid of MANIFEST file.
release-0.1.2   Added distutil's "keyword" argument.
...

I then pushed the new GIT repository on a remote repository:

git remote add origin git@bitbucket.org:grodola/prjname.git
git push origin mastter

Everything looks good except that if I change directory then clone the repository I just created all the tags are gone. Any idea?

@frej
Copy link
Owner

frej commented May 28, 2014

I then pushed the new GIT repository on a remote repository:
git remote add origin git@bitbucket.org:grodola/prjname.git
git push origin mastter

This is not related to hg-fast-export, have a look at the documentation
for git push:

git push --help, third paragraph in the DESCRIPTION section:

 When the command line does not specify what to push with <refspec>...
 arguments or --all, --mirror, --tags options, the command finds the
 default <refspec> by consulting remote.*.push configuration, and if it
 is not found, honors push.default configuration to decide what to push
 (See gitlink:git-config[1] for the meaning of push.default).

If you want the tags to be pushed, you have to say so.

@frej frej closed this as completed May 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants