Skip to content

Commit b8686c6

Browse files
sschuberthgitster
authored andcommitted
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 <[email protected]> Reviewed-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e7e07d5 commit b8686c6

File tree

2 files changed

+14
-18
lines changed

2 files changed

+14
-18
lines changed

contrib/remote-helpers/git-remote-bzr

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
#!/usr/bin/env python
1+
#!/bin/sh
22

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:
97
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 \
119
WARNING: https://raw.github.com/felipec/git-remote-bzr/master/git-remote-bzr
1210
WARNING: $ chmod +x $HOME/bin/git-remote-bzr
13-
''')
11+
EOT

contrib/remote-helpers/git-remote-hg

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
#!/usr/bin/env python
1+
#!/bin/sh
22

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:
97
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 \
119
WARNING: https://raw.github.com/felipec/git-remote-hg/master/git-remote-hg
1210
WARNING: $ chmod +x $HOME/bin/git-remote-hg
13-
''')
11+
EOT

0 commit comments

Comments
 (0)