Skip to content

Commit 271513c

Browse files
committed
Merge branch 'ss/remote-bzr-hg-placeholder-wo-python'
There is no need for Python only to give a few messages to the standard error stream, but we somehow did. * ss/remote-bzr-hg-placeholder-wo-python: contrib: git-remote-{bzr,hg} placeholders don't need Python
2 parents ba37c92 + b8686c6 commit 271513c

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)