diff options
| author | Junio C Hamano <gitster@pobox.com> | 2021-07-08 13:15:04 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-07-08 13:15:04 -0700 |
| commit | e867110340c236d2ba977d2c4bf1274a297f4e21 (patch) | |
| tree | 9fbb0b5d2dd64c2753d1232ff23fe776c862703f /shell.c | |
| parent | 11819cb74123efd1102a4c7f482ce8620a9bd674 (diff) | |
| parent | 338abb0f045b87df5e628543800e74dec0e72cdf (diff) | |
| download | git-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |
