Code Review
/
src
/
xds
/
xds-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Auto add var named CLIENT_PROJECT_DIR to environment.
[src/xds/xds-server.git]
/
lib
/
apiv1
/
exec.go
diff --git
a/lib/apiv1/exec.go
b/lib/apiv1/exec.go
index
675f6fb
..
4994b27
100644
(file)
--- a/
lib/apiv1/exec.go
+++ b/
lib/apiv1/exec.go
@@
-184,6
+184,9
@@
func (s *APIService) execCmd(c *gin.Context) {
cmd = append(cmd, args.Args...)
}
+ // Append client project dir to environment
+ args.Env = append(args.Env, "CLIENT_PROJECT_DIR="+prj.RelativePath)
+
s.log.Debugf("Execute [Cmd ID %d]: %v", cmdID, cmd)
data := make(map[string]interface{})