From 0d80de33e675dcaec0f60b994f1d74c9dcd9603c Mon Sep 17 00:00:00 2001 From: Brian Peiris Date: Mon, 11 Apr 2016 05:10:36 -0400 Subject: [PATCH] Fix infinite loop in shell with babun (cygwin) --- lib/git/fallback/status_shortcuts_shell.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 lib/git/fallback/status_shortcuts_shell.sh diff --git a/lib/git/fallback/status_shortcuts_shell.sh b/lib/git/fallback/status_shortcuts_shell.sh old mode 100644 new mode 100755 index 86c6694..e7cce4b --- a/lib/git/fallback/status_shortcuts_shell.sh +++ b/lib/git/fallback/status_shortcuts_shell.sh @@ -127,7 +127,7 @@ _gs_output_file_group() { if [ -z "$project_root" ]; then relative="${stat_file[$i]}" else - dest="$project_root/${stat_file[$i]}" + dest=$(readlink -f "$project_root/${stat_file[$i]}") local pwd=$(readlink -f "$PWD") relative="$(_gs_relative_path "$pwd" "$dest" )" fi