aboutsummaryrefslogtreecommitdiffstats
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:37 +0000
commita64ec64c2faf1ac6ce995cdd4e311d8be6046155 (patch)
treef8f3ecc45bf1b351993cd8dea521c2abbeaaf375
parentd2be7f7f652360f13cd66d0850f3e19ffe2afb0a (diff)
downloadbitbake-contrib-a64ec64c2faf1ac6ce995cdd4e311d8be6046155.tar.gz
fetch/git: Removed unused variables in _contains_lfs
branchname was set but never used in the context of _contains_lfs method. Signed-off-by: Paulo Neves <paulo@myneves.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/fetch2/git.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index 2e3d32515..7ea897420 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -660,11 +660,6 @@ class Git(FetchMethod):
Check if the repository has 'lfs' (large file) content
"""
- if not ud.nobranch:
- branchname = ud.branches[ud.names[0]]
- else:
- branchname = "master"
-
# The bare clonedir doesn't use the remote names; it has the branch immediately.
if wd == ud.clonedir:
refname = ud.branches[ud.names[0]]