From: Karl Hasselstr\öm Date: Fri, 17 Feb 2006 21:31:44 +0000 (+0000) Subject: Update .git/refs/heads/base after patch deletion X-Git-Tag: v0.9~31 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/2b4b9c29d1bc5d98eafdfdc82b99b57ebd4298d0?hp=2b4b9c29d1bc5d98eafdfdc82b99b57ebd4298d0 Update .git/refs/heads/base after patch deletion Save the current HEAD into refs/heads/base if the stack is empty after a patch has been deleted. This was not done before, which caused refs/heads/base to not be updated after 'stg commit'. To guard against existing repositories with no applied patches and HEAD != refs/heads/base, also do the update every time someone asks for the name of refs/heads/base. Signed-off-by: Karl Hasselström ---