Skip to content

CurrentVersionSHA fixes #51

Description

@dankessler

The post-checkout hook doesn't do a very stable job of updating the .local/CurrentVersionSHA file.

There seem to be two problems

  1. The path to the directory used by the checkout.sh script is based on a pwd but should use some of the trickier dirname $0 business used in the self_update.sh script.
  2. If you go to detached HEAD state, HEAD will not contain a reference to a branch, but rather the sha itself, so we need a way to identify the difference between these two things. My simple guess is that refs will include file separators, whereas sha's will not. Maybe we can use that?

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions