is_refname_available(): avoid shadowing "dir" variable
commit9ef6eaa287b12ff9469c7775507f107b86f9a8c8
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 11 May 2015 15:25:05 +0000 (11 17:25 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 May 2015 18:50:17 +0000 (11 11:50 -0700)
treeb7b92c21dfb3306284bc550b418d4ecfb12beede
parent49e818762aaf08791504d4de2076027e7d275844
is_refname_available(): avoid shadowing "dir" variable

The function had a "dir" parameter that was shadowed by a local "dir"
variable within a code block. Use the former in place of the latter.
(This is consistent with "dir"'s use elsewhere in the function.)

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
refs.c