From a64ec64c2faf1ac6ce995cdd4e311d8be6046155 Mon Sep 17 00:00:00 2001 From: Paulo Neves Date: Fri, 17 Feb 2023 17:01:03 +0000 Subject: 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 Signed-off-by: Richard Purdie --- lib/bb/fetch2/git.py | 5 ----- 1 file changed, 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]] -- cgit 1.2.3-korg