summaryrefslogtreecommitdiff
path: root/builtin-upload-archive.c
diff options
context:
space:
mode:
authorLibravatar Alex Riesen <raa.lkml@gmail.com>2007-05-23 22:21:39 +0200
committerLibravatar Junio C Hamano <junkio@cox.net>2007-05-23 22:38:44 -0700
commit3427b375b594b93ed47ae80ca1d6bb361d7d8f5e (patch)
treeb64edcb1ed76207acc12ebc534a3cb7102ff6652 /builtin-upload-archive.c
parentAdd ability to specify environment extension to run_command (diff)
downloadtgif-3427b375b594b93ed47ae80ca1d6bb361d7d8f5e.tar.xz
Allow environment variables to be unset in the processes started by run_command
To unset a variable, just specify its name, without "=". For example: const char *env[] = {"GIT_DIR=.git", "PWD", NULL}; const char *argv[] = {"git-ls-files", "-s", NULL}; int err = run_command_v_opt_cd_env(argv, RUN_GIT_CMD, ".", env); The PWD will be unset before executing git-ls-files. Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-upload-archive.c')
0 files changed, 0 insertions, 0 deletions