summaryrefslogtreecommitdiff
path: root/git/test/test_docs.py
diff options
context:
space:
mode:
authorBarry Scott <barry@barrys-emacs.org>2016-07-12 18:27:03 +0100
committerBarry Scott <barry@barrys-emacs.org>2016-07-12 18:27:03 +0100
commitb4b5ecc217154405ac0f6221af99a4ab18d067f6 (patch)
tree42ec5a4a19a52158c6aa6a20afabd75450f4fbe2 /git/test/test_docs.py
parenta7f403b1e82d4ada20d0e747032c7382e2a6bf63 (diff)
parent4896fa2ccbd84553392e2a74af450d807e197783 (diff)
downloadgitpython-b4b5ecc217154405ac0f6221af99a4ab18d067f6.tar.gz
Merge branch 'master' of https://github.com/gitpython-developers/GitPython
Diffstat (limited to 'git/test/test_docs.py')
-rw-r--r--git/test/test_docs.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/git/test/test_docs.py b/git/test/test_docs.py
index 8dc08559..a4604c58 100644
--- a/git/test/test_docs.py
+++ b/git/test/test_docs.py
@@ -64,7 +64,9 @@ class Tutorials(TestBase):
assert repo.head.ref == repo.heads.master # head is a symbolic reference pointing to master
assert repo.tags['0.3.5'] == repo.tag('refs/tags/0.3.5') # you can access tags in various ways too
assert repo.refs.master == repo.heads['master'] # .refs provides access to all refs, i.e. heads ...
- assert repo.refs['origin/master'] == repo.remotes.origin.refs.master # ... remotes ...
+
+ if 'TRAVIS' not in os.environ:
+ assert repo.refs['origin/master'] == repo.remotes.origin.refs.master # ... remotes ...
assert repo.refs['0.3.5'] == repo.tags['0.3.5'] # ... and tags
# ![8-test_init_repo_object]