aboutsummaryrefslogtreecommitdiff
path: root/shell.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-07-08 13:15:04 -0700
committerJunio C Hamano <gitster@pobox.com>2021-07-08 13:15:04 -0700
commite867110340c236d2ba977d2c4bf1274a297f4e21 (patch)
tree9fbb0b5d2dd64c2753d1232ff23fe776c862703f /shell.c
parent11819cb74123efd1102a4c7f482ce8620a9bd674 (diff)
parent338abb0f045b87df5e628543800e74dec0e72cdf (diff)
downloadgit-e867110340c236d2ba977d2c4bf1274a297f4e21.tar.xz
Merge branch 'ab/cmd-foo-should-return'
Code clean-up. * ab/cmd-foo-should-return: builtins + test helpers: use return instead of exit() in cmd_*
Diffstat (limited to 'shell.c')
-rw-r--r--shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell.c b/shell.c
index cef7ffdc9e..811e13b9c9 100644
--- a/shell.c
+++ b/shell.c
@@ -177,7 +177,7 @@ int cmd_main(int argc, const char **argv)
default:
continue;
}
- exit(cmd->exec(cmd->name, arg));
+ return cmd->exec(cmd->name, arg);
}
cd_to_homedir();