fix sndev pr (detatched version)

This commit is contained in:
keyan 2024-04-04 18:31:07 -05:00
parent f0334b6719
commit a0b402b4d6
1 changed files with 1 additions and 1 deletions

2
sndev
View File

@ -328,11 +328,11 @@ __sndev__pr_track() {
}
__sndev__pr_detach() {
refspec="+refs/pull/$1/head:refs/remotes/pr/$1"
case $(git config --get remote.origin.url) in
"http"*) git fetch https://github.com/stackernews/stacker.news.git "$refspec" ;;
*) git fetch git@github.com:stackernews/stacker.news.git "$refspec" ;;
esac
refspec="+refs/pull/$1/head:refs/remotes/pr/$1"
git checkout "pr/$1"
exit 0
}