diff options
| author | Shawn O. Pearce <spearce@spearce.org> | 2008-05-08 20:16:43 -0400 |
|---|---|---|
| committer | Shawn O. Pearce <spearce@spearce.org> | 2008-05-08 20:20:27 -0400 |
| commit | fe70225dc730c5af4c491106d1e0226d1c014d1e (patch) | |
| tree | e93b2cb82b124f632852686bcec71a757c09d6cb /lib/branch_create.tcl | |
| parent | 259cd0fddb1dea649d15e9cd5039c55dc30845b0 (diff) | |
| download | git-fe70225dc730c5af4c491106d1e0226d1c014d1e.tar.gz | |
git-gui: Setup branch.remote,merge for shorthand git-pull
When creating new branches if branch.autosetupmerge is not set, or
is set to true or always and we have been given a remote tracking
branch as the starting point for a new branch we want to create the
necessary configuration options in .git/config for the new branch
so that a no argument git-pull on the command line pulls from the
remote repository's branch.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'lib/branch_create.tcl')
| -rw-r--r-- | lib/branch_create.tcl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/branch_create.tcl b/lib/branch_create.tcl index 53dfb4ce6b..3817771b94 100644 --- a/lib/branch_create.tcl +++ b/lib/branch_create.tcl @@ -183,6 +183,9 @@ method _create {} { if {$spec ne {} && $opt_fetch} { $co enable_fetch $spec } + if {$spec ne {}} { + $co remote_source $spec + } if {[$co run]} { destroy $w |
