Skip to content

GitPython mangles my .gitconfig #285

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

Closed
moben opened this issue Apr 21, 2015 · 5 comments
Closed

GitPython mangles my .gitconfig #285

moben opened this issue Apr 21, 2015 · 5 comments

Comments

@moben
Copy link
Contributor

moben commented Apr 21, 2015

I have a couple of aliases in my .gitconfig (which I am slightly embarrassed to share, since they are horrible). When running the GitPython tests, these get mangled from

[alias]
    rbi = "!g() { git rebase -i origin/${1:-master} ; } ; g"
    expush = "!f() { git branch -f tmp ; { git rbi $1 && git push ; } ; git reset --hard tmp ; git rebase origin/${1:-master}; } ; f"

into

[alias]
    rbi = !g() { git rebase -i origin/${1:-master}  expush = "!f() { git branch -f tmp ; { git rbi $1 && git push ; } ; git reset --hard tmp ; git rebase origin/${1:-master}; } ; f
@moben
Copy link
Contributor Author

moben commented Apr 21, 2015

forgot to mention:
cPython version: 2.7.9
GitPython version: current master 5fe80b0

@Byron Byron added this to the v1.0.1 - Fixes milestone Apr 21, 2015
@Byron
Copy link
Member

Byron commented Apr 21, 2015

Thank you !
This seems critical as it implies that GitPython is rewriting your ~/.gitconfig file while the tests are running ?
Can you confirm I understood this correctly ?

@moben
Copy link
Contributor Author

moben commented Apr 21, 2015

yes, that is indeed the case. It also tries to rewrite /etc/gitconfig, as far as I can tell, but that fails of course.

@Byron
Copy link
Member

Byron commented Apr 22, 2015

You can watch the development stream on youtube.

@moben
Copy link
Contributor Author

moben commented Apr 22, 2015

Thanks for fixing this so fast!

@Byron Byron changed the title GitPython magles my .gitconfig GitPython mangles my .gitconfig Apr 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants