diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 6a1f47a32e..5b678827ed 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -952,9 +952,8 @@ class Git(FetchMethod): | |||
952 | commits = None | 952 | commits = None |
953 | else: | 953 | else: |
954 | if not os.path.exists(rev_file) or not os.path.getsize(rev_file): | 954 | if not os.path.exists(rev_file) or not os.path.getsize(rev_file): |
955 | from pipes import quote | ||
956 | commits = bb.fetch2.runfetchcmd( | 955 | commits = bb.fetch2.runfetchcmd( |
957 | "git rev-list %s -- | wc -l" % quote(rev), | 956 | "git rev-list %s -- | wc -l" % shlex.quote(rev), |
958 | d, quiet=True).strip().lstrip('0') | 957 | d, quiet=True).strip().lstrip('0') |
959 | if commits: | 958 | if commits: |
960 | open(rev_file, "w").write("%d\n" % int(commits)) | 959 | open(rev_file, "w").write("%d\n" % int(commits)) |