Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set GIT_PAGER to avoid requiring manual interference during import

Here's a small patch that helps on a few repos I've converted.
If the output of git-log is too long for one's terminal, git
sends the output to less(1) (or perhaps more(1)) which requires
manual interaction in order to continue with the import.
This patch causes git to use 'cat' instead, which fixed my problems.
  • Loading branch information...
commit 64415b754bd0988f3f1fbd2effa6026d22581cdd 1 parent 39f0e06
@dbueno dbueno authored committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  darcs-to-git
View
1  darcs-to-git
@@ -299,6 +299,7 @@ class DarcsPatch
ENV['GIT_AUTHOR_NAME'] = ENV['GIT_COMMITTER_NAME'] = git_author_name
ENV['GIT_AUTHOR_EMAIL'] = ENV['GIT_COMMITTER_EMAIL'] = git_author_email
ENV['GIT_AUTHOR_DATE'] = ENV['GIT_COMMITTER_DATE'] = date
+ ENV['GIT_PAGER'] = "cat" # so that pager of git-log doesn't halt conversion
if is_tag
run("git-tag", "-a", "-m", git_commit_message, git_tag_name)
else
Please sign in to comment.
Something went wrong with that request. Please try again.