Skip to content

Commit 705df7b

Browse files
sschuberthpatthoyts
authored andcommitted
Account for upstream separating the completion and prompt scripts
To make the split transparent to our users, source both files by default. [PT] Rolled in the sed part of Stefan Naewe's patch. Signed-off-by: Sebastian Schuberth <[email protected]> Signed-off-by: Stefan Naewe <[email protected]> Signed-off-by: Pat Thoyts <[email protected]>
1 parent b6ce102 commit 705df7b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

share/WinGit/copy-files.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ tar xf - &&
8686
cp $MSYSGITROOT/mingw/bin/hd2u.exe bin/dos2unix.exe &&
8787
strip bin/{[a-fh-z],g[a-oq-z]}*.exe libexec/git-core/*.exe &&
8888
cp $MSYSGITROOT/git/contrib/completion/git-completion.bash etc/ &&
89+
cp $MSYSGITROOT/git/contrib/completion/git-prompt.sh etc/ &&
8990
cp $MSYSGITROOT/etc/termcap etc/ &&
9091
cp $MSYSGITROOT/etc/inputrc etc/ &&
9192
sed 's/ = \/mingw\// = \//' < $MSYSGITROOT/etc/gitconfig > etc/gitconfig &&
@@ -95,7 +96,7 @@ mkdir git-cheetah &&
9596
cp $MSYSGITROOT/src/git-cheetah/explorer/git_shell_ext.dll git-cheetah/ &&
9697
cp $MSYSGITROOT/src/git-cheetah/explorer/git_shell_ext64.dll git-cheetah/ &&
9798
cp $MSYSGITROOT/share/WinGit/ReleaseNotes.rtf . &&
98-
sed 's/^\. .*\(git-completion.bash\)/. \/etc\/\1/' \
99+
sed 's@/git/contrib/completion@/etc@g' \
99100
< $MSYSGITROOT/etc/profile > etc/profile &&
100101
cp $MSYSGITROOT/share/resources/git.ico etc/ &&
101102
cp $MSYSGITROOT/share/resources/git.ico share/git-gui/lib/git-gui.ico &&

0 commit comments

Comments
 (0)