Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions niv-updater
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ createPullRequestsOnUpdate() {
# rewrite the entry so that we can use token instead of SSH
if [[ -n $github_ssh ]]; then
echo 'As this is a dependency fetched with SSH, trying to switch to https type'
niv_branch="$(jq -r ".\"$dep\".ref // empty" <"$wdir/$SOURCES_JSON")"
niv_branch="$(jq -r ".\"$dep\".branch // empty" <"$wdir/$SOURCES_JSON")"
niv drop "$dep"
niv add "$dep_owner/$dep_repo" -a rev="$revision" -a branch="$niv_branch"
rm "$SOURCES_JSON.orig"
Expand Down Expand Up @@ -310,7 +310,7 @@ createPullRequestsOnUpdate() {
echo "Dependency '$dep' is hosted on github.com"

{
niv_branch="$(jq -r ".\"$dep\".ref // empty" <"$wdir/$SOURCES_JSON")"
niv_branch="$(jq -r ".\"$dep\".branch // empty" <"$wdir/$SOURCES_JSON")"
printf '## Changelog for %s:\n' "$dep"
printf 'Branch: %s\n' "$niv_branch"
printf 'Commits: [%s/%s@%.8s...%.8s](https://github.com/%s/%s/compare/%s...%s)\n\n' "$dep_owner" "$dep_repo" "$revision" "$new_revision" "$dep_owner" "$dep_repo" "$revision" "$new_revision"
Expand Down