diff options
| author | Ben Straub <bs@github.com> | 2012-10-19 20:24:15 -0700 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2012-10-19 20:24:15 -0700 |
| commit | 2dae54a9419aaeb9d3d6a8eb6a28e13edb41bd58 (patch) | |
| tree | a83d89c454ad7ed81d9620a8eff4d140ca3fefd5 /src | |
| parent | 9c05c17b7ac7caf7691a9056994bda735ea31c81 (diff) | |
| download | libgit2-2dae54a9419aaeb9d3d6a8eb6a28e13edb41bd58.tar.gz | |
Improve clone sample's formatting
Diffstat (limited to 'src')
| -rw-r--r-- | src/checkout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/checkout.c b/src/checkout.c index 8ab3da8e2..b7bfa409a 100644 --- a/src/checkout.c +++ b/src/checkout.c @@ -192,7 +192,6 @@ static int checkout_blob( error = blob_content_to_file( blob, git_buf_cstr(data->path), file->mode, data->checkout_opts); - report_progress(data, file->path); git_blob_free(blob); return error; @@ -265,11 +264,13 @@ static int checkout_create_the_new( if (!is_submodule && !data->create_submodules) { error = checkout_blob(data, &delta->old_file); data->completed_steps++; + report_progress(data, delta->old_file.path); } else if (is_submodule && data->create_submodules) { error = checkout_submodule(data, &delta->old_file); data->completed_steps++; + report_progress(data, delta->old_file.path); } } |
