From 57f2c4a5d9d5375279fa24009169ab27fbb5cccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Fri, 16 Jun 2017 14:34:49 +0200 Subject: docs: simplify commands --- docs/chapters/import.sgml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/chapters/import.sgml b/docs/chapters/import.sgml index fc722a8..0dfff40 100644 --- a/docs/chapters/import.sgml +++ b/docs/chapters/import.sgml @@ -149,8 +149,7 @@ by version number. simple. You can either rename that branch to the default name upstream with: - &gitcmd; branch upstream theupstream-branch - &gitcmd; branch theupstream-branch + &gitcmd; branch -m upstream theupstream-branch or you can tell &gbp-buildpackage; the name of the branch to use as : @@ -174,8 +173,7 @@ EOF point. So use &gitkcmd; or &gitcmd;-log to locate the commit-id of that commit and create the upstream branch from there, e.g.: - COMMIT_ID=`&gitcmd; log --pretty=oneline | tail -1 | awk '{ print $1 }'` - &gitcmd; branch upstream $COMMIT_ID + &gitcmd; branch upstream $(&gitcmd; log --format='%H' | tail -1) The important thing here is that the COMMIT_ID specifies a point on the master branch that carried only the -- cgit v1.2.1