]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
add remote checkout
authorRobin Wittler <robin.wittler@profitbricks.com>
Wed, 3 Aug 2011 12:21:08 +0000 (14:21 +0200)
committerRobin Wittler <robin.wittler@profitbricks.com>
Wed, 3 Aug 2011 12:21:08 +0000 (14:21 +0200)
testgit_build.py

index f6563f86368e192d5803711afccadaf2fed8f175..d67894e12e892c181b4f90746d74b437b8f7a50e 100755 (executable)
@@ -129,7 +129,11 @@ if __name__ == '__main__':
         exit_error()
     atexit.register(remove_git_target_workspace)
     os.chdir(GIT_TARGET_DIR)
-    git_helper.git_checkout_branch(GIT_DEBIAN_BRANCH)
+    #git_helper.git_checkout_branch(GIT_DEBIAN_BRANCH)
+    git_helper.git_new_branch_from(
+            GIT_DEBIAN_BRANCH,
+            os.path.join('origin', GIT_DEBIAN_BRANCH)
+    )
     repo = git.repo.Repo()
     if not GIT_COMMITTER_EMAIL:
         # if the GIT_COMMIT_EMAIL is not set,