]> git.ipfire.org Git - thirdparty/git.git/blobdiff - shell.c
builtins + test helpers: use return instead of exit() in cmd_*
[thirdparty/git.git] / shell.c
diff --git a/shell.c b/shell.c
index cef7ffdc9e1d3040930841134577c591cf02f650..811e13b9c9597e9c89bf773a1065819d48a2277c 100644 (file)
--- 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();