Commit 50efd29ce94c4dd90421db29d2516fdde675f8e8

Drop use of $(...) for popen() and system() calls

Some shells don't support it, like the jsh that is used as /bin/sh on
some Solaris boxes, which results in the following error:

sh: syntax error at line 1: `(' unexpected

Fix the only user (reading remote information via git-ls-remote) to use
a much simpler shell syntax.

Reported by SungHyun Nam.

Commit diff

NEWS

 
1515 - Fix regression when staging all diff chunks in a section.
1616 - Bind the maximize view action to 'O'; it conflicted with the
1717 keybinding to launch the merge tool in the status view.
18 - Fix problem with $(cmd) usage in shell code. Some shells (jsh)
19 installed as /bin/sh does not support it.
1820
1921tig-0.11
2022--------
toggle raw diff

tig.c

 
109109#endif
110110
111111#define TIG_LS_REMOTE \
112 "git ls-remote $(git rev-parse --git-dir) 2>/dev/null"
112 "git ls-remote . 2>/dev/null"
113113
114114#define TIG_DIFF_CMD \
115115 "git show --pretty=fuller --no-color --root --patch-with-stat --find-copies-harder -C %s 2>/dev/null"
toggle raw diff