summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/com/gitblit/wicket/pages/propose_git.md2
-rw-r--r--src/main/java/pt.py2
-rw-r--r--src/site/tickets_using.mkd4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/propose_git.md b/src/main/java/com/gitblit/wicket/pages/propose_git.md
index 39ff859e..d52e1332 100644
--- a/src/main/java/com/gitblit/wicket/pages/propose_git.md
+++ b/src/main/java/com/gitblit/wicket/pages/propose_git.md
@@ -2,5 +2,5 @@
cd ${repo}
git checkout -b ${reviewBranch} origin/${integrationBranch}
...
- git push --set-upstream origin ${reviewBranch}
+ git push -u origin ${reviewBranch}
diff --git a/src/main/java/pt.py b/src/main/java/pt.py
index 3b35c167..fcfe5006 100644
--- a/src/main/java/pt.py
+++ b/src/main/java/pt.py
@@ -289,7 +289,7 @@ def propose(args):
# set the upstream branch configuration
args.id = int(fields[1].strip()[len('--> #'):])
__call(['git', 'fetch', args.remote])
- __call(['git', 'branch', '--set-upstream-to={}/ticket/{:d}'.format(args.remote, args.id)])
+ __call(['git', 'branch', '-u', '{}/ticket/{:d}'.format(args.remote, args.id)])
break
return
diff --git a/src/site/tickets_using.mkd b/src/site/tickets_using.mkd
index 3936e00d..3cda7314 100644
--- a/src/site/tickets_using.mkd
+++ b/src/site/tickets_using.mkd
@@ -28,7 +28,7 @@ Any authenticated user who can clone your repository.
...add a single commit...
git push origin HEAD:refs/for/new
# read ticket id from server output
- git branch --set-upstream-to=origin/ticket/{id}
+ git branch -u origin/ticket/{id}
### Creating the first Patchset for an Existing Ticket
@@ -42,7 +42,7 @@ Any authenticated user who can clone your repository.
cd repo
git checkout -b ticket/{id}
...add one or more commits...
- git push --set-upstream origin ticket/{id}
+ git push -u origin ticket/{id}
### Safely adding commits to a Patchset for an Existing Ticket