]> 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 16:45:39 +0000 (17:45 +0100)
committerHolger Levsen <holger@layer-acht.org>
Wed, 8 Feb 2012 16:45:39 +0000 (17:45 +0100)
debian_build.py

index 0a6c11f45e40390f359bbcec04656ca9b6073c4f..253c74e9663dd8780e62e2079f572fb8390dba7a 100755 (executable)
@@ -234,16 +234,16 @@ if __name__ == '__main__':
                 )
             )
     )
-    logging.getLogger('lib.git_helper').setLevel(logging.DEBUG)
-    options, args = getopts()
-    if git_helper.git_clone_remote_repository(GIT_REPO_PATH, GIT_TARGET_DIR):
-        logger.info('git clone was successfull')
-    else:
-        logger_loud_error('git clone was not successfull')
-        exit_error()
+    #logging.getLogger('lib.git_helper').setLevel(logging.DEBUG)
+    #options, args = getopts()
+    #if git_helper.git_clone_remote_repository(GIT_REPO_PATH, GIT_TARGET_DIR):
+    #    logger.info('git clone was successfull')
+    #else:
+    #    logger_loud_error('git clone was not successfull')
+    #    exit_error()
 
-    atexit.register(remove_git_target_workspace)
-    os.chdir(GIT_TARGET_DIR)
+    #atexit.register(remove_git_target_workspace)
+    #os.chdir(GIT_TARGET_DIR)
 
     # FIXME: this is just needed for gbp and can go away eventually
     if GIT_BRANCH_NAME:
@@ -269,9 +269,9 @@ if __name__ == '__main__':
     # treeish refspec when a name was given (i.e. tag names, branch names, 
     # etc.)
     # TODO: upgrade git-buildpackage
-    GIT_UPSTREAM_BRANCH = git_helper.git_get_treeish(
-        os.path.join('origin', GIT_UPSTREAM_BRANCH)
-    )
+    #GIT_UPSTREAM_BRANCH = git_helper.git_get_treeish(
+    #    os.path.join('origin', GIT_UPSTREAM_BRANCH)
+    #)
 
     # now checkout the requested branch
     if git_helper.git_checkout_branch(GIT_UPSTREAM_BRANCH):