diff options
| author | termie <github@anarkystic.com> | 2012-02-01 11:49:21 -0800 |
|---|---|---|
| committer | termie <github@anarkystic.com> | 2012-02-01 15:41:16 -0800 |
| commit | 0b34e5f511c8dc57d11ddef874fdbd2ea7bb6ff5 (patch) | |
| tree | 44e2270c9861e1a4fb1ec6a329fda0d98c19310a | |
| parent | 6fd68e1a3878502c9d2bb65be670791e20a29ef6 (diff) | |
| download | keystone-0b34e5f511c8dc57d11ddef874fdbd2ea7bb6ff5.tar.gz keystone-0b34e5f511c8dc57d11ddef874fdbd2ea7bb6ff5.tar.xz keystone-0b34e5f511c8dc57d11ddef874fdbd2ea7bb6ff5.zip | |
deal with tags in git checkout
| -rw-r--r-- | keystone/test.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/keystone/test.py b/keystone/test.py index 9f2773f7..720b4db8 100644 --- a/keystone/test.py +++ b/keystone/test.py @@ -40,6 +40,7 @@ def testsdir(*p): def checkout_vendor(repo, rev): + # TODO(termie): this function is a good target for some optimizations :PERF name = repo.split('/')[-1] if name.endswith('.git'): name = name[:-4] @@ -57,7 +58,8 @@ def checkout_vendor(repo, rev): utils.git('clone', repo, revdir) cd(revdir) - utils.git('pull') + utils.git('checkout', '-q', 'master') + utils.git('pull', '-q') utils.git('checkout', '-q', rev) # write out a modified time |
