aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java
diff options
context:
space:
mode:
authorGravatar kchodorow <kchodorow@google.com>2017-06-21 18:15:36 +0200
committerGravatar Philipp Wollermann <philwo@google.com>2017-06-22 12:31:44 +0200
commit89659810e3048782dfb5e308e39aa8a0727e464e (patch)
tree0ebc5236708dd39b106620a0e11e5ec06fd73a65 /src/main/java
parent29916a909f525501b49f7b751e633f27abf306b1 (diff)
Set correct execroot for info
Fixes #3055. RELNOTES: `bazel info execution_root` returns the corrrect directory name for the execution root. PiperOrigin-RevId: 159701171
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/commands/InfoItem.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/commands/InfoItem.java b/src/main/java/com/google/devtools/build/lib/runtime/commands/InfoItem.java
index 336342ba20..52894e7a73 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/commands/InfoItem.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/commands/InfoItem.java
@@ -181,7 +181,8 @@ public abstract class InfoItem {
public byte[] get(Supplier<BuildConfiguration> configurationSupplier, CommandEnvironment env)
throws AbruptExitException {
checkNotNull(env);
- return print(env.getDirectories().getExecRoot());
+ return print(env.getDirectories().getExecRoot(
+ configurationSupplier.get().getMainRepositoryName()));
}
}