From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pjotr Prins Subject: bug#22423: git-fetch does not update checked out tree when commit hash changes Date: Thu, 21 Jan 2016 07:54:03 +0100 Message-ID: <20160121065403.GA4278@thebird.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aM998-0003bZ-5t for bug-guix@gnu.org; Thu, 21 Jan 2016 01:55:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aM994-0006w2-St for bug-guix@gnu.org; Thu, 21 Jan 2016 01:55:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:39304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aM994-0006vy-Pg for bug-guix@gnu.org; Thu, 21 Jan 2016 01:55:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aM994-0001jj-IV for bug-guix@gnu.org; Thu, 21 Jan 2016 01:55:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aM98o-0003Xz-65 for bug-guix@gnu.org; Thu, 21 Jan 2016 01:54:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aM98k-0006sK-Sn for bug-guix@gnu.org; Thu, 21 Jan 2016 01:54:46 -0500 Received: from mail.thebird.nl ([95.154.246.10]:33274) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aM98k-0006p3-Mm for bug-guix@gnu.org; Thu, 21 Jan 2016 01:54:42 -0500 Content-Disposition: inline List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: 22423@debbugs.gnu.org I can reliably reproduce this using a recent version of GNU Guix. When updating the commit hash to a different commit the git-fetch derivation *does* change (I checked in guile), but the checked out git tree in the store does not change - it gets shared between the commits. I am not sure why the tree gets shared, but the effect is that the same package gets installed using the same /gnu/store/xxx-git-checkout. Removing the git-checkout dir and updating the Hash gives a missing dir error (as expected when they use the same).