summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {