Skip to content

Commit

Permalink
Merge branch 'maint-1.6.4' into maint
Browse files Browse the repository at this point in the history
* maint-1.6.4:
  rebase -i: more graceful handling of invalid commands
  help -i: properly error out if no info viewer can be found
  • Loading branch information
Junio C Hamano committed Oct 28, 2009
2 parents ade2ca0 + f1be316 commit aab7486
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions builtin-help.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ static void show_info_page(const char *git_cmd)
const char *page = cmd_to_page(git_cmd);
setenv("INFOPATH", system_path(GIT_INFO_PATH), 1);
execlp("info", "info", "gitman", page, NULL);
die("no info viewer handled the request");
}

static void get_html_page_path(struct strbuf *page_path, const char *page)
Expand Down
7 changes: 6 additions & 1 deletion git-rebase--interactive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,12 @@ do_next () {
;;
*)
warn "Unknown command: $command $sha1 $rest"
die_with_patch $sha1 "Please fix this in the file $TODO."
if git rev-parse --verify -q "$sha1" >/dev/null
then
die_with_patch $sha1 "Please fix this in the file $TODO."
else
die "Please fix this in the file $TODO."
fi
;;
esac
test -s "$TODO" && return
Expand Down

0 comments on commit aab7486

Please sign in to comment.