summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorPaulo Neves <paulo@myneves.com>2023-02-17 17:01:03 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-22 12:03:39 +0000
commitd085dcb4499750d45a2b429d836eefa347cd2450 (patch)
treece56f9b9bc8095c1a1888f91675997f93fc2779e /bitbake/lib/bb/fetch2/git.py
parentffcc20770db8c6d5fcf67d8203b43203a4e7226e (diff)
downloadpoky-d085dcb4499750d45a2b429d836eefa347cd2450.tar.gz
bitbake: fetch/git: Removed unused variables in _contains_lfs
branchname was set but never used in the context of _contains_lfs method. (Bitbake rev: a64ec64c2faf1ac6ce995cdd4e311d8be6046155) Signed-off-by: Paulo Neves <paulo@myneves.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 2e3d32515f..7ea8974204 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -660,11 +660,6 @@ class Git(FetchMethod):
660 Check if the repository has 'lfs' (large file) content 660 Check if the repository has 'lfs' (large file) content
661 """ 661 """
662 662
663 if not ud.nobranch:
664 branchname = ud.branches[ud.names[0]]
665 else:
666 branchname = "master"
667
668 # The bare clonedir doesn't use the remote names; it has the branch immediately. 663 # The bare clonedir doesn't use the remote names; it has the branch immediately.
669 if wd == ud.clonedir: 664 if wd == ud.clonedir:
670 refname = ud.branches[ud.names[0]] 665 refname = ud.branches[ud.names[0]]