We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 681f498 commit dff0820Copy full SHA for dff0820
cmd/src/batch_remote.go
@@ -5,7 +5,6 @@ import (
5
"flag"
6
"fmt"
7
cliLog "log"
8
- "strings"
9
"time"
10
11
"github.com/sourcegraph/sourcegraph/lib/errors"
@@ -155,13 +154,14 @@ Examples:
155
154
}
156
ui.ExecutingBatchSpecSuccess()
157
158
- executionURL := fmt.Sprintf(
159
- "%s/%s/batch-changes/%s/executions/%s",
160
- cfg.endpointURL,
161
- strings.TrimPrefix(namespace.URL, "/"),
162
- batchChangeName,
163
- batchSpecID,
164
- )
+ executionURL := cfg.endpointURL.JoinPath(
+ fmt.Sprintf(
+ "%s/batch-changes/%s/executions/%s",
+ namespace.URL,
+ batchChangeName,
+ batchSpecID,
+ ),
+ ).String()
165
ui.RemoteSuccess(executionURL)
166
167
return nil
0 commit comments