From d085dcb4499750d45a2b429d836eefa347cd2450 Mon Sep 17 00:00:00 2001 From: Paulo Neves Date: Fri, 17 Feb 2023 17:01:03 +0000 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/git.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'bitbake/lib/bb/fetch2/git.py') 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): 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]] -- cgit v1.2.3-54-g00ecf