clone 506480 -1
retitle -1 confusing message when creating branch from unborn branch ("Not a 
valid object name: 'master'")
tags 506480 + fixed-upstream
quit

Hi Eugene,

Eugene V. Lyubimkin wrote:

>                 Suppose I want to create git repo for Debian packaging. First 
> what
> I want to do is creating 'upstream' branch, committing to it, and only then
> merging to 'master' and add 'debian/' to 'master' and so further...

FYI: fixed by v1.7.9.2~21^2 (git checkout -b: allow switching out of
an unborn branch, 2012-10-30) upstream.

        $ git init empty
        Initialized empty Git repository in /tmp/empty/.git/
        $ cd empty
        $ git checkout -b upstream
        $ git symbolic-ref HEAD
        refs/heads/upstream

> And, well, bug report is just 'minor' to fix confusing message.

Still present.

        $ git branch upstream
        fatal: Not a valid object name: 'master'.
        $ git branch -m upstream
        error: refname refs/heads/master not found
        fatal: Branch rename failed

Thanks,
Jonathan



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to