diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2012-12-17 12:27:32 +0100 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2012-12-24 16:54:27 +0100 |
| commit | 7d4b65f608ce814fc814e8c9832e610097658e84 (patch) | |
| tree | bde40fc230b71f9a21e03b03432a7cf0222b376b /src/remote.c | |
| parent | 6bd09ecc14a47ba5f7f7be87a15002d23c32bdbf (diff) | |
| download | libgit2-7d4b65f608ce814fc814e8c9832e610097658e84.tar.gz | |
Fix indentations
Diffstat (limited to 'src/remote.c')
| -rw-r--r-- | src/remote.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/remote.c b/src/remote.c index 4d4614eb2..ba7eeed82 100644 --- a/src/remote.c +++ b/src/remote.c @@ -673,7 +673,7 @@ static int update_tips_callback(git_remote_head *head, void *payload) git_vector *refs = (git_vector *)payload; git_vector_insert(refs, head); - return 0; + return 0; } static int remote_head_for_fetchspec_src(git_remote_head **out, git_vector *update_heads, const char *fetchspec_src) @@ -684,11 +684,11 @@ static int remote_head_for_fetchspec_src(git_remote_head **out, git_vector *upda assert(update_heads && fetchspec_src); *out = NULL; - - git_vector_foreach(update_heads, i, remote_ref) { - if (strcmp(remote_ref->name, fetchspec_src) == 0) { - *out = remote_ref; - break; + + git_vector_foreach(update_heads, i, remote_ref) { + if (strcmp(remote_ref->name, fetchspec_src) == 0) { + *out = remote_ref; + break; } } @@ -759,7 +759,7 @@ static int git_remote_write_fetchhead(git_remote *remote, git_vector *update_hea } /* Create the FETCH_HEAD file */ - git_vector_foreach(update_heads, i, remote_ref) { + git_vector_foreach(update_heads, i, remote_ref) { int merge_this_fetchhead = (merge_remote_ref == remote_ref); if (!include_all_fetchheads && @@ -815,7 +815,7 @@ int git_remote_update_tips(git_remote *remote) /* Make a copy of the transport's refs */ if (git_vector_init(&refs, 16, NULL) < 0 || - git_vector_init(&update_heads, 16, NULL) < 0) + git_vector_init(&update_heads, 16, NULL) < 0) return -1; if (git_remote_ls(remote, update_tips_callback, &refs) < 0) |
