From 139af75b850354556771a3f24eeffab79d88db95 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 8 Feb 2012 17:45:39 +0100 Subject: [PATCH] lets try to get rid of the double clone --- debian_build.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/debian_build.py b/debian_build.py index 0a6c11f..253c74e 100755 --- a/debian_build.py +++ b/debian_build.py @@ -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): -- 2.39.5