]> arthur.barton.de Git - bup.git/commit - cmd/save-cmd.py
Refuse branch/tag names that start with a dot
authorGabriel Filion <lelutin@gmail.com>
Thu, 2 Dec 2010 23:01:41 +0000 (18:01 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Mon, 3 Jan 2011 04:44:12 +0000 (20:44 -0800)
commit837e909714b268a9a44d0e4e0e1e3e3c01d08f51
treed6c71b43432e892e2a2e4eee9de8fcf3b4da6de7
parent891e5f31865c561ace4ad30ed12dfa8836e42d3b
Refuse branch/tag names that start with a dot

In git, branch and tag names are not allowed to start with a dot.

In bup, we also want to enforce this since we want to avoid collision with the
top-level special directories (.commit and .tag).

Also, in save-cmd, there was an unused variable at line 286. 'oldref' is used
and contains the same thing so get rid of 'ref'.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
cmd/save-cmd.py
cmd/split-cmd.py
cmd/tag-cmd.py