Use string_ncopy when copying ref names
commitb4760a90ca58537306601b179b46e47e5c39894e
authorJonas Fonseca <fonseca@diku.dk>
Fri, 30 May 2014 19:45:57 +0000 (30 15:45 -0400)
committerJonas Fonseca <fonseca@diku.dk>
Fri, 30 May 2014 19:45:57 +0000 (30 15:45 -0400)
tree13e52d68570d4f23659910cc28ddc5e6d08b5adc
parente4cff4f518ea4f045cde10caf098a4becec39ca3
Use string_ncopy when copying ref names

Change code that updates the internal env/state variables to use
string_ncopy instead of string_copy_rev, since the latter copies atmost
40 characters. Test that both branches and tags with long names can be
succesfully checked out.

Fixes #290
src/refdb.c
src/refs.c
test/refs/branch-checkout-test [new file with mode: 0755]