From c107e578006274bda11ce75d0dbb5a6dee3618a2 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 13 Jul 2009 21:55:57 +0200 Subject: Removed vcs_fix_origin Now with support for multiple package roots, this function is useless in most cases --- bin/ct | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'bin') diff --git a/bin/ct b/bin/ct index 319a61d..588f80d 100755 --- a/bin/ct +++ b/bin/ct @@ -309,8 +309,6 @@ function vcs_branch_is_master ( function vcs_pull ( vcs_setup $1 if ((GIT_USE_ORIGIN)) { - # the package might be newly created and not have an origin yet - vcs_fix_origin $1 git pull } else { pkgroot_parse $(list_get_root $1) @@ -322,8 +320,6 @@ function vcs_pull ( function vcs_push ( vcs_setup $1 if ((GIT_USE_ORIGIN)) { - # see above - vcs_fix_origin $1 git push } else { pkgroot_parse $(list_get_root $1) @@ -336,18 +332,6 @@ function vcs_status ( git status ) -function vcs_fix_origin ( - vcs_setup $1 - if [[ ! -r .git/remotes/origin && ! -r .git/refs/remotes/origin/HEAD ]] { - if ! fgrep -q '[remote "origin"]' .git/config; then - pkgroot_parse $(list_get_root $1) - git remote add origin $PKG_ROOT/$1 - pkgroot_clean - fi - } -) - - ## List stuff function list_is_installed { -- cgit v1.2.3