git-r3.eclass: Unset local function after use
authorMichał Górny <mgorny@gentoo.org>
Sun, 6 Dec 2015 16:14:52 +0000 (17:14 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 6 Dec 2015 16:15:15 +0000 (17:15 +0100)
eclass/git-r3.eclass

index 8b5ffd5318456ef0edc4d9f34b8d2b1e0c5cd660..42d6dbf6b326c2e3800786ce80b511a3d020bdbc 100644 (file)
@@ -821,6 +821,7 @@ git-r3_checkout() {
                "${@}" || die "git checkout ${remote_ref:-${new_commit_id}} failed"
        }
        git-r3_sub_checkout
+       unset -f git-r3_sub_checkout
 
        local old_commit_id=$(
                git rev-parse --quiet --verify refs/git-r3/"${local_id}"/__old__