pull convenience in a checked out package

Bug #1918180 reported by Bryce Harrington
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
git-ubuntu
New
Undecided
Unassigned

Bug Description

git ubuntu clone helpfully checks out the current devel branch of the given package, however it doesn't setup the remote branch. It's not hard to workaround this, but seems like it would be convenient (with few unintended side-effects).

== Example ==

$ git ubuntu clone dovecot dovecot-gu
...
$ cd dovecot-gu
$ git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=<remote>/<branch> ubuntu/devel

== Workaround ==

The workaround is obviously to just follow the stated directions:

$ git branch --set-upstream-to pkg/ubuntu/devel ubuntu/devel
Branch 'ubuntu/devel' set up to track remote branch 'ubuntu/devel' from 'pkg' by rebasing.

It's a bit of typing, and might take a moment to think what's needed, but otherwise not a big deal. Just seems like something git-ubuntu should be able to do for me.

Tags: clone
Robie Basak (racb)
tags: added: clone
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.