summaryrefslogtreecommitdiff
path: root/t/t5505-remote.sh
diff options
context:
space:
mode:
authorLibravatar Ramkumar Ramachandra <artagnon@gmail.com>2013-06-22 13:28:12 +0530
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-06-23 00:33:57 -0700
commit55cfde251b4bee36f64f2067cccc4ba346aaf1b0 (patch)
tree76d11db51d104818c557f7ba054a7eeaef42476b /t/t5505-remote.sh
parentt/t5505-remote: use test_path_is_missing (diff)
downloadtgif-55cfde251b4bee36f64f2067cccc4ba346aaf1b0.tar.xz
remote: remove dead code in read_branches_file()
The first line of the function checks that the remote-name contains a slash ('/'), and sets the "slash" variable accordingly. The only caller of read_branches_file() is remote_get_1(); the calling codepath is guarded by valid_remote_nick(), which checks that the remote does not contain a slash. Therefore, the "slash" variable can never be set: remove the dead code that assumes otherwise. Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5505-remote.sh')
0 files changed, 0 insertions, 0 deletions