summaryrefslogtreecommitdiff
path: root/doc/guides/backporting-to-release-lines.md
diff options
context:
space:
mode:
authorLance Ball <lball@redhat.com>2017-10-01 17:02:08 -0400
committerLance Ball <lball@redhat.com>2017-10-02 12:06:51 -0400
commite517bc97d48da199e5e3af858e19173a209063c4 (patch)
tree9edffea8bb4b2b1d8ca9ed8ac58b4f59a804b016 /doc/guides/backporting-to-release-lines.md
parentb200a10c8b080e2f729af650b41476f6b40ebf9f (diff)
downloadandroid-node-v8-e517bc97d48da199e5e3af858e19173a209063c4.tar.gz
android-node-v8-e517bc97d48da199e5e3af858e19173a209063c4.tar.bz2
android-node-v8-e517bc97d48da199e5e3af858e19173a209063c4.zip
doc: add 'git clean -xfd' to backport guide
When changing from a recent version, e.g. 8.x to an older branch like 6.x test artifacts sometimes hang around and cause failures. Using `git clean` will prevent that from happening. PR-URL: https://github.com/nodejs/node/pull/15715 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'doc/guides/backporting-to-release-lines.md')
-rw-r--r--doc/guides/backporting-to-release-lines.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/guides/backporting-to-release-lines.md b/doc/guides/backporting-to-release-lines.md
index 9f48d940cd..07da834e14 100644
--- a/doc/guides/backporting-to-release-lines.md
+++ b/doc/guides/backporting-to-release-lines.md
@@ -44,6 +44,11 @@ cd $NODE_DIR
git fetch upstream v6.x-staging:v6.x-staging -f
# Assume we want to backport PR #10157
git checkout -b backport-10157-to-v6.x v6.x-staging
+# Ensure there are no test artifacts from previous builds
+# Note that this command deletes all files and directories
+# not under revision control below the ./test directory.
+# It is optional and should be used with caution.
+git clean -xfd ./test/
```
4. After creating the branch, apply the changes to the branch. The cherry-pick