bash: add new 'git stash' subcommands
[gitweb.git] / fast-import.c
index 0d3449f2cef93ae0ece87f4204d5e817d6e62439..655913ddb27f758ce494fc18551e852c9a6aa9f1 100644 (file)
@@ -2291,7 +2291,8 @@ static void cmd_reset_branch(void)
        else
                b = new_branch(sp);
        read_next_command();
-       if (!cmd_from(b) && command_buf.len > 0)
+       cmd_from(b);
+       if (command_buf.len > 0)
                unread_command_buf = 1;
 }
 
@@ -2377,6 +2378,7 @@ int main(int argc, const char **argv)
 {
        unsigned int i, show_stats = 1;
 
+       setup_git_directory();
        git_config(git_pack_config);
        if (!pack_compression_seen && core_compression_seen)
                pack_compression_level = core_compression_level;