diff options
| -rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index bdbfe5c00f..07064c694f 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
| @@ -566,8 +566,15 @@ class Git(FetchMethod): | |||
| 566 | """ | 566 | """ |
| 567 | Check if the repository has 'lfs' (large file) content | 567 | Check if the repository has 'lfs' (large file) content |
| 568 | """ | 568 | """ |
| 569 | cmd = "%s grep lfs HEAD:.gitattributes | wc -l" % ( | 569 | |
| 570 | ud.basecmd) | 570 | if not ud.nobranch: |
| 571 | branchname = ud.branches[ud.names[0]] | ||
| 572 | else: | ||
| 573 | branchname = "master" | ||
| 574 | |||
| 575 | cmd = "%s grep lfs origin/%s:.gitattributes | wc -l" % ( | ||
| 576 | ud.basecmd, ud.branches[ud.names[0]]) | ||
| 577 | |||
| 571 | try: | 578 | try: |
| 572 | output = runfetchcmd(cmd, d, quiet=True, workdir=wd) | 579 | output = runfetchcmd(cmd, d, quiet=True, workdir=wd) |
| 573 | if int(output) > 0: | 580 | if int(output) > 0: |
