completion: use __gitcomp_builtin in _git_am
[gitweb.git] / contrib / completion / git-prompt.sh
index 41a471957ad227f470d5e7472fb325fd791a4011..983e419d2b7eda8f191a878a395179dcc24eb949 100644 (file)
@@ -283,7 +283,7 @@ __git_ps1_colorize_gitstring ()
 # variable, in that order.
 __git_eread ()
 {
-       test -r "$1" && read "$2" <"$1"
+       test -r "$1" && IFS=$'\r\n' read "$2" <"$1"
 }
 
 # __git_ps1 accepts 0 or 1 arguments (i.e., format string)