contrib: git-remote-{bzr,hg} placeholders don't need Python
It does not make sense for these placeholder scripts to depend on Python just because the real scripts do. At the example of Git for Windows, we would not even be able to see those warnings as it does not ship with Python. So just use plain shell scripts instead. Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Sebastian Schuberth committed
Mar 3, 2017 at 10:57 UTC
b8686c661d367a6c823fd1c6a47abd2b80ffa009
2 files changed
+14
-18
contrib/remote-helpers/git-remote-bzr
+7
-9
@@ -1,13 +1,11 @@
1
-#!/usr/bin/env python
1
+#!/bin/sh
2
3
-import sys
4
-
5
-sys.stderr.write('WARNING: git-remote-bzr is now maintained independently.\n')
6
-sys.stderr.write('WARNING: For more information visit https://github.com/felipec/git-remote-bzr\n')
7
-
8
-sys.stderr.write('''WARNING:
3
+cat >&2 <<'EOT'
4
+WARNING: git-remote-bzr is now maintained independently.
5
+WARNING: For more information visit https://github.com/felipec/git-remote-bzr
6
+WARNING:
7
WARNING: You can pick a directory on your $PATH and download it, e.g.:
10
-WARNING: $ wget -O $HOME/bin/git-remote-bzr \\
8
+WARNING: $ wget -O $HOME/bin/git-remote-bzr \
9
WARNING: https://raw.github.com/felipec/git-remote-bzr/master/git-remote-bzr
10
WARNING: $ chmod +x $HOME/bin/git-remote-bzr
13
-''')
11
+EOT
contrib/remote-helpers/git-remote-hg
+7
-9
@@ -1,13 +1,11 @@
1
-#!/usr/bin/env python
1
+#!/bin/sh
2
3
-import sys
4
-
5
-sys.stderr.write('WARNING: git-remote-hg is now maintained independently.\n')
6
-sys.stderr.write('WARNING: For more information visit https://github.com/felipec/git-remote-hg\n')
7
-
8
-sys.stderr.write('''WARNING:
3
+cat >&2 <<'EOT'
4
+WARNING: git-remote-hg is now maintained independently.
5
+WARNING: For more information visit https://github.com/felipec/git-remote-hg
6
+WARNING:
7
WARNING: You can pick a directory on your $PATH and download it, e.g.:
10
-WARNING: $ wget -O $HOME/bin/git-remote-hg \\
8
+WARNING: $ wget -O $HOME/bin/git-remote-hg \
9
WARNING: https://raw.github.com/felipec/git-remote-hg/master/git-remote-hg
10
WARNING: $ chmod +x $HOME/bin/git-remote-hg
13
-''')
11
+EOT