git-resource icon indicating copy to clipboard operation
git-resource copied to clipboard

The file .git/short_ref doesn't exist

Open laura-herrera opened this issue 5 years ago • 1 comments

The docs say that:

  • .git/short_ref: Short (first seven characters) of the .git/ref. Can be templated with short_ref_format parameter.

However, the short_ref file is not being populated: drwxr-xr-x 1 root root 188 Jan 7 12:19 . drwxr-xr-x 1 root root 202 Jan 7 12:19 .. -rw-r--r-- 1 root root 0 Jan 7 12:19 FETCH_HEAD -rw-r--r-- 1 root root 41 Jan 7 12:19 HEAD drwxr-xr-x 1 root root 0 Jan 7 12:19 branches -rw-r--r-- 1 root root 17 Jan 7 12:19 committer -rw-r--r-- 1 root root 299 Jan 7 12:19 config -rw-r--r-- 1 root root 73 Jan 7 12:19 description drwxr-xr-x 1 root root 364 Jan 7 12:19 hooks -rw-r--r-- 1 root root 5831 Jan 7 12:19 index drwxr-xr-x 1 root root 14 Jan 7 12:19 info drwxr-xr-x 1 root root 20 Jan 7 12:19 lfs drwxr-xr-x 1 root root 16 Jan 7 12:19 logs drwxr-xr-x 1 root root 16 Jan 7 12:19 objects -rw-r--r-- 1 root root 118 Jan 7 12:19 packed-refs -rw-r--r-- 1 root root 41 Jan 7 12:19 ref drwxr-xr-x 1 root root 18 Jan 7 12:19 refs

neither is .git/commit_message. This would be super useful ta

laura-herrera avatar Jan 07 '20 12:01 laura-herrera

No issue on my side short_ref and commit_message are present

ls .git -1
FETCH_HEAD
HEAD
branches
commit_message
committer
config
description
hooks
index
info
logs
objects
packed-refs
ref
refs
short_ref

Which version of the git resource are you using ? embedded with concourse ? If you are using a "old" concourse or git-resource, you can get the new one by defining a resource_types

resource_types:
- name: git
  type: docker-image
  source:
    repository: concourse/git-resource
    tag: latest

talset avatar Apr 10 '20 09:04 talset