]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
lets try to get rid of the double clone
authorHolger Levsen <holger@layer-acht.org>
Wed, 8 Feb 2012 17:37:38 +0000 (18:37 +0100)
committerHolger Levsen <holger@layer-acht.org>
Wed, 8 Feb 2012 17:37:38 +0000 (18:37 +0100)
debian_build.py

index 6549ded6c27bf639a7af3a9649d18fc1cd1788ae..686c5d8422f33b3469962d2fedee2b840e173b64 100755 (executable)
@@ -259,9 +259,10 @@ if __name__ == '__main__':
 
     repo = git.repo.Repo()
 
-    if GIT_BRANCH_NAME != 'master':
+    #if GIT_BRANCH_NAME != 'master':
         #git_helper.git_new_branch_from(
-        git_helper.git_checkout_branch(
+    # FIXME: error checking... (as below)
+    git_helper.git_checkout_branch(
                 GIT_BRANCH_NAME) #,
         #        os.path.join('origin', GIT_BRANCH_NAME)
         #)
@@ -275,11 +276,11 @@ if __name__ == '__main__':
     #)
 
     # now checkout the requested branch
-    if git_helper.git_checkout_branch(GIT_UPSTREAM_BRANCH):
-        logger.info('git checkout %s was successfull' % GIT_UPSTREAM_BRANCH)
-    else:
-        logger_loud_error('git checkout %s was not successfull' % GIT_UPSTREAM_BRANCH)
-        exit_error()
+    #if git_helper.git_checkout_branch(GIT_UPSTREAM_BRANCH):
+    #    logger.info('git checkout %s was successfull' % GIT_UPSTREAM_BRANCH)
+    #else:
+    #    logger_loud_error('git checkout %s was not successfull' % GIT_UPSTREAM_BRANCH)
+    #    exit_error()
 
     # we need to make sure our jenkins config is used, so let's delete any 
     # other config available in repository that might be prefered