summaryrefslogtreecommitdiffstats
path: root/poky/meta/classes/patch.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'poky/meta/classes/patch.bbclass')
-rw-r--r--poky/meta/classes/patch.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/poky/meta/classes/patch.bbclass b/poky/meta/classes/patch.bbclass
index 2fc6925e4..3e0a18182 100644
--- a/poky/meta/classes/patch.bbclass
+++ b/poky/meta/classes/patch.bbclass
@@ -33,7 +33,7 @@ python patch_task_patch_prefunc() {
if (testsrcdir + os.sep).startswith(workdir + os.sep):
# Double-check that either workdir or S or some directory in-between is a git repository
found = False
- while testsrcdir != '/':
+ while testsrcdir != workdir:
if os.path.exists(os.path.join(testsrcdir, '.git')):
found = True
break
OpenPOWER on IntegriCloud