Commit 5ffd510dd2f39f674d502853cee38c80ad959756

nulltoken 2012-07-04T12:23:03

refs: remove seemingly useless giterr_clear() call

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/refs.c b/src/refs.c
index fbbb866..e8f9fc8 100644
--- a/src/refs.c
+++ b/src/refs.c
@@ -1409,8 +1409,6 @@ int git_reference_rename(git_reference *ref, const char *new_name, int force)
 	if ((git_reference_has_log(ref)) && (git_reflog_rename(ref, new_name) < 0))
 		goto cleanup;
 
-	giterr_clear();
-
 	/*
 	 * Change the name of the reference given by the user.
 	 */