Opened 9 years ago

Closed 7 years ago

#53 closed defect (fixed)

git 2.0 pager does not work - less claims no file name on command line

Reported by: Steven Levine Owned by:
Priority: minor Milestone: dev tools
Component: git Version: 2.0
Severity: low Keywords: less pager
Cc:

Description

git log

does not invoke less correctly. Less reports

Missing filename ("less --help" for help)

which implies that git's stdout is not properly connected to less's stdin. Less defaults to reading from stdin if there is no file listed on the less command line and if stdin is not a terminal.

Note that the bauxite v1.7.3.2 port handles the pager properly.

Change History (4)

comment:1 Changed 9 years ago by Silvan Scherrer

Component: *nonegit

comment:2 Changed 9 years ago by Silvan Scherrer

Milestone: dev tools
Severity: low

comment:3 Changed 8 years ago by dryeo

I find that piping to less works as a workaround.

git log | less

comment:4 Changed 7 years ago by dmik

Resolution: fixed
Status: newclosed

It turns out that the problem was GNU less itself. As with our recent RPM version (481-3.oc00) it just works as it should (it even retains colours!). So closing this.

Note: See TracTickets for help on using tickets.