nmbug-status: Use 'show-ref --heads' for loading configs
authorW. Trevor King <wking@tremily.us>
Sun, 22 Mar 2015 22:51:41 +0000 (15:51 -0700)
committerDavid Bremner <david@tethera.net>
Wed, 1 Apr 2015 04:16:06 +0000 (06:16 +0200)
commit244f8739543dd2f6cde1188074fc4b32272e8446
tree4a5facc513d6665d6df463d1eefd4fc0d7bebfb8
parenta351df1a06923b8e826029ec06c7d25aa28f8cf3
nmbug-status: Use 'show-ref --heads' for loading configs

When loading configs from Git, the bare branch name (without a
refs/heads/ prefix or similar) matches all branches of that name
(including remote-tracking branches):

  .nmbug $ git show-ref config
  48f3bbf1d1492e5f3d2f01de6ea79a30d3840f20 refs/heads/config
  48f3bbf1d1492e5f3d2f01de6ea79a30d3840f20 refs/remotes/origin/config
  4b6dbd9ffd152e7476f5101eff26747f34497cee refs/remotes/wking/config

Instead of relying on the ordering of the matching references, use
--heads to ensure we only match local branches.
NEWS
devel/nmbug/nmbug
devel/nmbug/nmbug-status