From: Avi Kivity <[email protected]> If the git repository has been checkout out to something other than the tag, then the git index may contain stale files. Fix by using a temporary index.
Signed-off-by: Avi Kivity <[email protected]> diff --git a/scripts/make-release b/scripts/make-release index fec0424..68e4874 100755 --- a/scripts/make-release +++ b/scripts/make-release @@ -57,10 +57,17 @@ files=("arch/*/kvm/*" "virt/kvm" "include/linux/kvm*" "include/trace/events/kvm*" ) -git --git-dir="$kvm_git" --work-tree="$tmpdir/$name" checkout "$commit" . +index="$tmpdir/index" + +rm -f "$index" +GIT_INDEX_FILE="$index" git --git-dir="$kvm_git" read-tree "$commit" +GIT_INDEX_FILE="$index" git --git-dir="$kvm_git" --work-tree="$tmpdir/$name" checkout "$commit" . lcommit=($(git --git-dir="$kvm_git" ls-tree "$commit" linux-2.6)) lcommit="${lcommit[2]}" -git --git-dir="$linux_git" --work-tree="$tmpdir/$name/linux-2.6" \ +rm -f "$index" +GIT_INDEX_FILE="$index" git --git-dir="$linux_git" read-tree "$lcommit" +GIT_INDEX_FILE="$index" git --git-dir="$linux_git" \ + --work-tree="$tmpdir/$name/linux-2.6" \ checkout "$lcommit" "${fil...@]}" cd "$tmpdir/$name" -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
