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

Bug in git-sh-prompt: incorrectly determines the upstream for repos produced by recent git svn clone --stdlayout

From
DSDanil Semelenov <mail@danil.mobi>
Date
Feb 3, 2016, 22:48 UTC
Message-ID
<20160203224814.GA11100@desktop>
Let me copy-paste the original bug report from the Debain mail list by Paul Wise http://comments.gmane.org/gmane.linux.debian.devel.bugs.general/1321117. The bug is still reproducible with the latest version of git-prompt.sh.
Show 10 quoted lines
>I recently did a git svn clone of the Planet Debian SVN and I noticed
>that the normal upstream indicator in the git part of my $PS1 was not
>working properly. The issue appears to be that the code decides that
>the upstream is trunk instead of origin/trunk. trunk gives an error
>from git rev-list but origin/trunk does not. It works for normal git
>svn clone because there the remote branch is just named git-svn with
>no origin/ prefix. I'm using the below settings for my bash git PS1.
>In case you need a small repo to reproduce this with, try neomis.
>It still works with some of my old repos because the remote branch is
>just trunk instead of origin/trunk, so I think git-svn changed this.
Message 1 of 1 in “Bug in git-sh-prompt: incorrectly determines the upstream for repos produced by recent git svn clone --stdlayout”
  1. Danil SemelenovFeb 3, 2016

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.