Correct scp commands in documentation to include -p
Use -p option to preserve the permissions of the remote file,
which are offered as 755 for executable scripts.
Reported-by: Marek Zawirski <marek.zawirski@gmail.com>
Change-Id: I2fc73fcfe2da644774e2e91e8015c31256ad341d
Signed-off-by: Shawn O. Pearce <sop@google.com>
diff --git a/Documentation/cmd-cherry-pick.txt b/Documentation/cmd-cherry-pick.txt
index 85599d4..3509c84 100644
--- a/Documentation/cmd-cherry-pick.txt
+++ b/Documentation/cmd-cherry-pick.txt
@@ -38,7 +38,7 @@
To obtain the 'gerrit-cherry-pick' script use scp to copy it to
your local system:
- $ scp -P 29418 gerrit.example.com:bin/gerrit-cherry-pick ~/bin
+ $ scp -p -P 29418 gerrit.example.com:bin/gerrit-cherry-pick ~/bin/
GERRIT
------
diff --git a/Documentation/cmd-hook-commit-msg.txt b/Documentation/cmd-hook-commit-msg.txt
index 1dfb08c..34c1a4e 100644
--- a/Documentation/cmd-hook-commit-msg.txt
+++ b/Documentation/cmd-hook-commit-msg.txt
@@ -56,7 +56,7 @@
To obtain the 'commit-msg' script use scp to copy it to your
local system:
- $ scp -P 29418 review.example.com:hooks/commit-msg .git/hooks
+ $ scp -p -P 29418 review.example.com:hooks/commit-msg .git/hooks/
SEE ALSO
--------
diff --git a/Documentation/cmd-index.txt b/Documentation/cmd-index.txt
index 9d07877..35bd7e0 100644
--- a/Documentation/cmd-index.txt
+++ b/Documentation/cmd-index.txt
@@ -9,8 +9,8 @@
To download a client command or hook, use scp:
- $ scp -P 29418 review.example.com:bin/gerrit-cherry-pick ~/bin
- $ scp -P 29418 review.example.com:hooks/commit-msg .git/hooks
+ $ scp -p -P 29418 review.example.com:bin/gerrit-cherry-pick ~/bin/
+ $ scp -p -P 29418 review.example.com:hooks/commit-msg .git/hooks/
For more details on how to determine the correct SSH port number,
see link:user-upload.html#test_ssh[Testing Your SSH Connection].
diff --git a/Documentation/user-changeid.txt b/Documentation/user-changeid.txt
index eda4ca4..1b5afd3 100644
--- a/Documentation/user-changeid.txt
+++ b/Documentation/user-changeid.txt
@@ -48,7 +48,7 @@
create and insert a unique Change-Id line during `git commit`.
To install the hook, copy it from Gerrit's SSH daemon:
- $ scp -P 29418 review.example.com:hooks/commit-msg .git/hooks
+ $ scp -p -P 29418 review.example.com:hooks/commit-msg .git/hooks/
For more details, see link:cmd-hook-commit-msg.html[commit-msg].