summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/git.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 9e58337359..9b2ad455c9 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -845,18 +845,8 @@ class Git(FetchMethod):
845 """ 845 """
846 Check if the repository has 'lfs' (large file) content 846 Check if the repository has 'lfs' (large file) content
847 """ 847 """
848
849 if ud.nobranch:
850 # If no branch is specified, use the current git commit
851 refname = ud.revision
852 elif wd == ud.clonedir:
853 # The bare clonedir doesn't use the remote names; it has the branch immediately.
854 refname = ud.branch
855 else:
856 refname = "origin/%s" % ud.branch
857
858 cmd = "%s grep lfs %s:.gitattributes | wc -l" % ( 848 cmd = "%s grep lfs %s:.gitattributes | wc -l" % (
859 ud.basecmd, refname) 849 ud.basecmd, ud.revision)
860 850
861 try: 851 try:
862 output = runfetchcmd(cmd, d, quiet=True, workdir=wd) 852 output = runfetchcmd(cmd, d, quiet=True, workdir=wd)