author | Michael W. Olson <mwolson@gnu.org> | |
Mon, 15 Oct 2007 17:48:27 +0000 (13:48 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 16 Oct 2007 04:59:17 +0000 (00:59 -0400) | ||
commit | 2858028e1ab6c79f39ec0057d2034bcbe9f47cf9 | |
tree | cb2d7daa1a7a0388421b6ff856061b0661dff6f6 | tree | snapshot |
parent | d55e7c3acf72413563e695a19f7f66efac442064 | commit | diff |
git-rebase--interactive.sh: Quote arguments to test
If /bin/sh is /bin/dash, then the script will display an error if
$parent_sha1 is undefined. This patch works fixes the issue by
quoting both arguments to `test'. Arguments composed solely of
variable expansions should always be quoted, unless we know for
certain that the contents are defined.
Signed-off-by: Michael W. Olson <mwolson@gnu.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
If /bin/sh is /bin/dash, then the script will display an error if
$parent_sha1 is undefined. This patch works fixes the issue by
quoting both arguments to `test'. Arguments composed solely of
variable expansions should always be quoted, unless we know for
certain that the contents are defined.
Signed-off-by: Michael W. Olson <mwolson@gnu.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-rebase--interactive.sh | diff | blob | history |