Re: [PATCH v2 05/14] remote: remove dead code in read_branches_file()

2013-06-23 Thread Junio C Hamano
Ramkumar Ramachandra artag...@gmail.com writes: - /* - * With slash, e.g. git fetch jgarzik/netdev-2.6 when - * reading from $GIT_DIR/branches/jgarzik fetches HEAD from - * the partial URL obtained from the branches file plus - * /netdev-2.6 and does not store it in

[PATCH v2 05/14] remote: remove dead code in read_branches_file()

2013-06-22 Thread Ramkumar Ramachandra
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.