git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] cogito: master as the default remote branch

From
SBSanti Béjar <sbejar@gmail.com>
Date
Jul 20, 2005, 10:41 UTC
Message-ID
<87ek9tkbds.fsf@gmail.com>
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(-)
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)
Message 1 of 1 in “cogito: master as the default remote branch”
  1. cogito: master as the default remote branchSanti Béjar, Jul 20, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.