when user uses gbs build with option --incremental option, it will change the the uid:gid of local git tree,
because when incremental gbs build, it will mount local git tree to $BUILD_ROOT$TOPDIR", it change the owner ship to $BUILD_ROOT$TOPDIR",
it will change local git tree. with default uid:gid 399:399
Change-Id: I00f0f86e4329bf58a4ed02a52fcc7b30b7b6aed3
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
return -1;
}
push @args, "sudo /usr/bin/build";
- #Use the defalut uid:gid in /usr/bin/build
- #push @args, "--uid $zuid:$zgid" if ($zuid != 0 && $zgid != 0);
+ push @args, "--uid $zuid:$zgid" if ($zuid != 0 && $zgid != 0);
my $nprocessors = 2;
if ($^O eq "linux") {
$nprocessors = int(int(sysconf(SC_NPROCESSORS_ONLN))/int($MAX_THREADS));