diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-09-07 14:21:24 -0400 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-09-09 22:58:39 -0400 |
commit | 223bccf2f6ccb82be9314b44d2c271f40a54eb53 (patch) | |
tree | 223742af5de3f50bf55b36d01ccfe316490e02ca /src/ostree/ot-builtin-checkout.c | |
parent | 6b4ef97c186755fb12b2b0b0bd16e691dd18ce88 (diff) | |
download | ostree-223bccf2f6ccb82be9314b44d2c271f40a54eb53.tar.gz |
repo: Make read_commit spit out a resolved commit ref as well
read_commit resolves the ref to a commit, and a lot of consumers want
the resolved commit for their own purposes; this prevents them from
calling resolve_rev themselves.
https://bugzilla.gnome.org/show_bug.cgi?id=707727
Diffstat (limited to 'src/ostree/ot-builtin-checkout.c')
-rw-r--r-- | src/ostree/ot-builtin-checkout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ostree/ot-builtin-checkout.c b/src/ostree/ot-builtin-checkout.c index b2284b43..ff055e75 100644 --- a/src/ostree/ot-builtin-checkout.c +++ b/src/ostree/ot-builtin-checkout.c @@ -60,7 +60,7 @@ process_one_checkout (OstreeRepo *repo, gs_unref_object GFile *subtree = NULL; gs_unref_object GFileInfo *file_info = NULL; - if (!ostree_repo_read_commit (repo, resolved_commit, &root, cancellable, error)) + if (!ostree_repo_read_commit (repo, resolved_commit, &root, NULL, cancellable, error)) goto out; if (subpath) |