]> rtime.felk.cvut.cz Git - notmuch.git/commit
nmbug: Add an 'init' command
authorW. Trevor King <wking@tremily.us>
Tue, 28 Oct 2014 21:39:37 +0000 (14:39 -0700)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 29 Nov 2014 09:09:53 +0000 (10:09 +0100)
commit1e0385648816ceb63f88cf8031831cd0053ea9ba
tree9f34cbecbac1d844a35f21c7e8cac0bec1446ad2
parent7585e8c906b51b5a8db89feb8981b8c5fe2e107c
nmbug: Add an 'init' command

For folks that want to start versioning a new tag-space, instead of
cloning one that someone else has already started.

The empty-blob hash-object call avoids errors like:

  $ nmbug commit
  error: invalid object 100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 for
'tags/...'
  fatal: git-write-tree: error building trees
  'git HASH(0x9ef3eb8) write-tree' exited with nonzero value

David Bremner suggested [1]:

  $ git hash-object -w /dev/null

instead of my Python version of:

  $ git hash-object -w --stdin <&-

but I expect that closing stdin is more portable than the /dev/null
path (which doesn't exist on Windows, for example).

[1]: id:87y4vu6uvf.fsf@maritornes.cs.unb.ca
     http://thread.gmane.org/gmane.mail.notmuch.general/18626/focus=18720
devel/nmbug/nmbug