summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/pkg2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/pkg b/bin/pkg
index 35f2b19..ddfdb95 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -257,6 +257,8 @@ function vcs_fix_origin {
if [[ ! -r .git/remotes/origin && ! -r .git/refs/remotes/origin/HEAD ]] {
fgrep '[remote "origin"]' .git/config &> /dev/null ||
git remote add origin $PKG_ROOT/${PWD:t}
+ git config branch.master.remote origin
+ git config branch.master.merge refs/heads/master
}
git remote update &> /dev/null
}