summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/patch.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/patch.bbclass b/meta/classes/patch.bbclass
index 2fc6925e49..3e0a181821 100644
--- a/meta/classes/patch.bbclass
+++ b/meta/classes/patch.bbclass
@@ -33,7 +33,7 @@ python patch_task_patch_prefunc() {
33 if (testsrcdir + os.sep).startswith(workdir + os.sep): 33 if (testsrcdir + os.sep).startswith(workdir + os.sep):
34 # Double-check that either workdir or S or some directory in-between is a git repository 34 # Double-check that either workdir or S or some directory in-between is a git repository
35 found = False 35 found = False
36 while testsrcdir != '/': 36 while testsrcdir != workdir:
37 if os.path.exists(os.path.join(testsrcdir, '.git')): 37 if os.path.exists(os.path.join(testsrcdir, '.git')):
38 found = True 38 found = True
39 break 39 break