Merge pull request #619 from jpoimboe/kpatch-build-remove-git-dir

kpatch-build: remove ~/.kpatch/src/.git dir on Fedora
This commit is contained in:
Jessica Yu 2016-11-15 14:22:00 -08:00 committed by GitHub
commit ab012ab5d2

View File

@ -394,6 +394,7 @@ else
mv "$RPMTOPDIR"/BUILD/kernel-*/linux-"${ARCHVERSION%.*}"*"${ARCHVERSION##*.}" "$SRCDIR" >> "$LOGFILE" 2>&1 || die
rm -rf "$RPMTOPDIR"
rm -rf "$SRCDIR/.git"
cp "$SRCDIR/.config" "$OBJDIR" || die
if [[ "$ARCHVERSION" == *-* ]]; then