commit | 2cc8b82a19cdaaa1ea92a653d7bfb593fa517e2f | [log] [tgz] |
---|---|---|
author | philwo <philwo@google.com> | Mon Jun 24 06:15:47 2019 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Jun 24 06:16:46 2019 -0700 |
tree | ce097b3aabb679c788b1b9cc940e852b3c15a3ff | |
parent | 6e0df10ad861fcf06e0b59b3853688da846f8a0e [diff] |
blackbox: Use "git add -A" to really stage all changes. Otherwise we miss deleted files. Explanation for the change from the Git docs: - git add -A stages all changes - git add . stages new files and modifications, without deletions - git add -u stages modifications and deletions, without new files PiperOrigin-RevId: 254744271
diff --git a/src/test/java/com/google/devtools/build/lib/blackbox/tests/workspace/GitRepositoryHelper.java b/src/test/java/com/google/devtools/build/lib/blackbox/tests/workspace/GitRepositoryHelper.java index 0bced90..0db27f3 100644 --- a/src/test/java/com/google/devtools/build/lib/blackbox/tests/workspace/GitRepositoryHelper.java +++ b/src/test/java/com/google/devtools/build/lib/blackbox/tests/workspace/GitRepositoryHelper.java
@@ -58,7 +58,7 @@ * code. */ void addAll() throws Exception { - runGit("add", "."); + runGit("add", "-A"); } /**