summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-13 21:55:57 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-13 21:55:57 +0200
commitc107e578006274bda11ce75d0dbb5a6dee3618a2 (patch)
treecee3d60ff7d90582c74495bdcec4e90e8a36554a /bin
parent4c08c49f95803c35590fe11f8a2c5222a352be1c (diff)
Removed vcs_fix_origin
Now with support for multiple package roots, this function is useless in most cases
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ct16
1 files changed, 0 insertions, 16 deletions
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 {