Skip to content

Commit 2277ad7

Browse files
committed
Fix update_reference
1 parent 5a887e1 commit 2277ad7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/github.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ impl Repository {
12281228
client: &GithubClient,
12291229
refname: &str,
12301230
sha: &str,
1231-
) -> anyhow::Result<()> {
1231+
) -> anyhow::Result<GitReference> {
12321232
let url = format!("{}/git/refs/{}", self.url(), refname);
12331233
client
12341234
.json(client.patch(&url).json(&serde_json::json!({
@@ -1241,8 +1241,7 @@ impl Repository {
12411241
"{} failed to update reference {refname} to {sha}",
12421242
self.full_name
12431243
)
1244-
})?;
1245-
Ok(())
1244+
})
12461245
}
12471246

12481247
/// Returns a list of recent commits on the given branch.

0 commit comments

Comments
 (0)