Skip to content

Commit

Permalink
fix: It should be branch, not ref
Browse files Browse the repository at this point in the history
When using https://, ref is irrelevant
  • Loading branch information
knl committed Feb 20, 2020
1 parent 967578d commit a8cdb97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion niv-updater
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ createPullRequestsOnUpdate() {
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 drop "$dep"
niv add "$dep_owner/$dep_repo" -a rev="$revision" -a ref="$niv_branch"
niv add "$dep_owner/$dep_repo" -a rev="$revision" -a branch="$niv_branch"
rm "$SOURCES_JSON.orig"
cp "$SOURCES_JSON" "$SOURCES_JSON.orig"
fi
Expand Down

0 comments on commit a8cdb97

Please sign in to comment.