diff options
| -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 9ecc855af8..dc86aabfe2 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
| @@ -861,9 +861,8 @@ class Git(FetchMethod): | |||
| 861 | commits = None | 861 | commits = None |
| 862 | else: | 862 | else: |
| 863 | if not os.path.exists(rev_file) or not os.path.getsize(rev_file): | 863 | if not os.path.exists(rev_file) or not os.path.getsize(rev_file): |
| 864 | from pipes import quote | ||
| 865 | commits = bb.fetch2.runfetchcmd( | 864 | commits = bb.fetch2.runfetchcmd( |
| 866 | "git rev-list %s -- | wc -l" % quote(rev), | 865 | "git rev-list %s -- | wc -l" % shlex.quote(rev), |
| 867 | d, quiet=True).strip().lstrip('0') | 866 | d, quiet=True).strip().lstrip('0') |
| 868 | if commits: | 867 | if commits: |
| 869 | open(rev_file, "w").write("%d\n" % int(commits)) | 868 | open(rev_file, "w").write("%d\n" % int(commits)) |
