{"action":"closed","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/27432","labels_url":"https://api.github.com/repos/saltstack/salt/issues/27432/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/27432/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/27432/events","html_url":"https://github.com/saltstack/salt/issues/27432","id":108450697,"number":27432,"title":"Using specific tag as GitFS remote","user":{"login":"mafrosis","id":243851,"avatar_url":"https://avatars.githubusercontent.com/u/243851?v=3","gravatar_id":"","url":"https://api.github.com/users/mafrosis","html_url":"https://github.com/mafrosis","followers_url":"https://api.github.com/users/mafrosis/followers","following_url":"https://api.github.com/users/mafrosis/following{/other_user}","gists_url":"https://api.github.com/users/mafrosis/gists{/gist_id}","starred_url":"https://api.github.com/users/mafrosis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mafrosis/subscriptions","organizations_url":"https://api.github.com/users/mafrosis/orgs","repos_url":"https://api.github.com/users/mafrosis/repos","events_url":"https://api.github.com/users/mafrosis/events{/privacy}","received_events_url":"https://api.github.com/users/mafrosis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/saltstack/salt/labels/File%20Servers","name":"File Servers","color":"006b75"},{"url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P3","name":"P3","color":"0a3d77"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Platform","name":"Platform","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/TEAM%20Core","name":"TEAM Core","color":"A9A9A9"}],"state":"closed","locked":false,"assignee":{"login":"terminalmage","id":328598,"avatar_url":"https://avatars.githubusercontent.com/u/328598?v=3","gravatar_id":"","url":"https://api.github.com/users/terminalmage","html_url":"https://github.com/terminalmage","followers_url":"https://api.github.com/users/terminalmage/followers","following_url":"https://api.github.com/users/terminalmage/following{/other_user}","gists_url":"https://api.github.com/users/terminalmage/gists{/gist_id}","starred_url":"https://api.github.com/users/terminalmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terminalmage/subscriptions","organizations_url":"https://api.github.com/users/terminalmage/orgs","repos_url":"https://api.github.com/users/terminalmage/repos","events_url":"https://api.github.com/users/terminalmage/events{/privacy}","received_events_url":"https://api.github.com/users/terminalmage/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/69","html_url":"https://github.com/saltstack/salt/milestones/B%208","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/69/labels","id":1332030,"number":69,"title":"B 8","description":"","creator":{"login":"meggiebot","id":12242451,"avatar_url":"https://avatars.githubusercontent.com/u/12242451?v=3","gravatar_id":"","url":"https://api.github.com/users/meggiebot","html_url":"https://github.com/meggiebot","followers_url":"https://api.github.com/users/meggiebot/followers","following_url":"https://api.github.com/users/meggiebot/following{/other_user}","gists_url":"https://api.github.com/users/meggiebot/gists{/gist_id}","starred_url":"https://api.github.com/users/meggiebot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meggiebot/subscriptions","organizations_url":"https://api.github.com/users/meggiebot/orgs","repos_url":"https://api.github.com/users/meggiebot/repos","events_url":"https://api.github.com/users/meggiebot/events{/privacy}","received_events_url":"https://api.github.com/users/meggiebot/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":20,"state":"open","created_at":"2015-09-30T20:34:44Z","updated_at":"2015-11-24T23:53:05Z","due_on":"2015-11-24T07:00:00Z","closed_at":null},"comments":8,"created_at":"2015-09-26T09:01:36Z","updated_at":"2015-11-24T23:53:05Z","closed_at":"2015-11-24T23:53:05Z","body":"The [GitFS docs](https://docs.saltstack.com/en/latest/ref/configuration/master.html#std:conf_master-gitfs_base) say that I can set `gitfs_base` to point at a tag in my remote. This doesn't work; after highstate the `gitfs_remote` repo points at `master`.\r\n\r\nMy `/etc/salt/minion`:\r\n\r\n    file_client: local\r\n\r\n    fileserver_backend:\r\n      - roots\r\n      - git\r\n\r\n    gitfs_base: v0.2.0\r\n\r\n    gitfs_remotes:\r\n      - git://github.com/mafrosis/salt-formulae\r\n\r\n    file_roots:\r\n      base:\r\n        - /srv/salt\r\n\r\nSome commands after running a `highstate`\r\n\r\n    > cat /var/cache/salt/minion/gitfs/remote_map.txt\r\n    # gitfs_remote map as of 26 Sep 2015 08:55:10.497089\r\n    6fa7938d35062aedfd594b8359245491 = https://github.com/mafrosis/salt-formulae\r\n    >\r\n    > cat /var/cache/salt/minion/gitfs/6fa7938d35062aedfd594b8359245491/.git/HEAD\r\n    ref: refs/heads/master\r\n\r\nFurther to that:\r\n- If `gitfs_base` is included, states from the `gitfs_remote` are not found at all.\r\n- If `gitfs_base` is removed, a highstate will finish using states from `master` branch on the remote."}}