Improve Issue #1951

Since there is no duplicate branch/tag name,
so that no need to check duplicate name.

Signed-off-by: Yue Lin Ho <b8732003@student.nsysu.edu.tw>