summaryrefslogtreecommitdiffstats
path: root/tools/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'tools/scripts')
-rw-r--r--tools/scripts/git_submodule.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/scripts/git_submodule.py b/tools/scripts/git_submodule.py
index fa5e9691..5376e877 100644
--- a/tools/scripts/git_submodule.py
+++ b/tools/scripts/git_submodule.py
@@ -171,8 +171,8 @@ class Submodule:
error = subprocessCall(['git', 'checkout', 'FETCH_HEAD']);
if self.revision:
- search_string = '\"git-svn-id: .*@' + str(self.revision) + '\"'
- line = subprocessCheckOutput(['git', 'log', '-n1', '--pretty=oneline', '--grep=' + search_string])
+ search_string = 'git-svn-id:.*@%d' % self.revision
+ line = subprocessCheckOutput(['git', 'log', '-n1', '--pretty=oneline', r'--grep=%s' % search_string])
if line:
self.shasum = line.split()[0]