commit | df835d3a0c013b9ef912172663c7c58dad87164d | [log] [tgz] |
---|---|---|
author | Michael Haggerty <mhagger@alum.mit.edu> | Sat May 25 11:08:02 2013 +0200 |
committer | Junio C Hamano <gitster@pobox.com> | Tue May 28 09:25:00 2013 -0700 |
tree | c9b781db5c65aac0f3ecda6e10667e3e807577d8 | |
parent | b87dbcc89940edbf92cbab381001542a7cac3627 [diff] |
add_rev_cmdline(): make a copy of the name argument Instead of assuming that the memory pointed to by the name argument will live forever, make a local copy of it before storing it in the ref_cmdline_info. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>