Open
Description
I've found that remote refs that contain braces are truncated when inspected using GitPython. This doesn't seem to affect local refs. I constructed a contrived example to demonstrate:
Python version (python --version
): Python 2.7.6
GitPython version (python -c 'import git; print git.__version__'
): 1.0.1
Test Code:
import git
r = git.Repo('/tmp/testrepo')
origin = r.create_remote('origin', 'file:///tmp/testorigin')
for r in origin.fetch():
print r
Actual Output:
origin/master
origin/test
origin/test
origin/test
Expected Output:
origin/master
origin/test{test
origin/test{test}test
origin/test}test
Test Setup:
mkdir -p /tmp/testrepo
cd /tmp/testrepo
git init
touch foo.txt
git add foo.txt
git commit -a -m 'testrepo initial commit'
git checkout -b test{branch}with_braces
mkdir -p /tmp/testorigin
cd /tmp/testorigin
git init
touch bar.txt
git add bar.txt
git commit -a -m 'testorigin initial commit'
git checkout -b test{test}test
git checkout -b test{test
git checkout -b test}test