Skip to content

Instantly share code, notes, and snippets.

@sheijk
Last active April 15, 2021 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sheijk/a067f129b695efd2774a05a728eaf5f1 to your computer and use it in GitHub Desktop.
Save sheijk/a067f129b695efd2774a05a728eaf5f1 to your computer and use it in GitHub Desktop.

Having this (missing / at the end of git Url)

let emacsOverlay = (import (builtins.fetchGit {
      url = "https://github.com/nix-community/emacs-overlay";
      ref = "master";
      rev = "47acbeca3e13a03131a0a7a9a3bd3443e1760d71";
    }));
in
# [...]

produces this error message:

warning: refname ‘47acbeca3e13a03131a0a7a9a3bd3443e1760d71’ is ambiguous. Git normally never creates a ref that ends with 40 hex characters because it will be ignored when you just specify 40-hex. These refs may be created by mistake. For example,

git switch -c $br $(git rev-parse …)

where “$br” is somehow empty and a 40-hex ref is created. Please examine these refs and maybe delete them. Turn this message off by running “git config advice.objectNameWarning false”

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