threads / patch / 1275

patchcogito: master as the default remote branch

Subject: [PATCH] cogito: master as the default remote branch

## tl;dr

One message between Jul 20, 2005 and Jul 20, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Santi Béjar· Jul 20, 2005, 10:41 UTC · lore
Recover the old behavior of the remote branch name
... specified in $_git/branches/$name and defaulting to master.
Signed-off-by: Santi Béjar <sbejar@gmail.com>
---
 cg-pull |    2 +-
 cg-push |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Show changes to 2 files +2 −2

cg-pull, cg-push

diff --git a/cg-pull b/cg-pull
--- a/cg-pull
+++ b/cg-pull
@@ -249,7 +249,7 @@ name=${ARGS[0]}
 [ "$name" ] || die "where to pull from?"
 uri=$(cat "$_git/branches/$name" 2>/dev/null) || die "unknown branch: $name"
 
-rembranch=$_git_head
+rembranch=master
 if echo "$uri" | grep -q '#'; then
 	rembranch=$(echo $uri | cut -d '#' -f 2)
 	uri=$(echo $uri | cut -d '#' -f 1)
diff --git a/cg-push b/cg-push
--- a/cg-push
+++ b/cg-push
@@ -26,7 +26,7 @@ name=${ARGS[0]}
 [ "$name" ] || die "where to push from?"
 uri=$(cat "$_git/branches/$name" 2>/dev/null) || die "unknown branch: $name"
 
-rembranch=$_git_head
+rembranch=master
 if echo "$uri" | grep -q '#'; then
 	rembranch=$(echo $uri | cut -d '#' -f 2)
 	uri=$(echo $uri | cut -d '#' -f 1)

← back to recent threads