Skip to content

Commit

Permalink
[IMP] git-diff-branch: handle master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
KangOl committed May 15, 2020
1 parent a888ab5 commit bf886e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion git-diff-branch
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ if [[ "${REMOTE_URL%/*}" != "[email protected]:odoo" ]]; then
fi

PREV=$(
git branch --remotes --list "${REMOTE}"'/*' | awk -F/ '!/tmp|staging|nightly|HEAD|master/ {
git branch --remotes --list "${REMOTE}"'/*' | awk -F/ '!/tmp|staging|nightly|HEAD/ {
branch=$2;
split(gensub("saas-", "", 1, branch), a, ".");
if(length(a)==1) {
a[2] = a[1];
switch(a[2]) {
case "master":
a[1] = a[2] = 9999;
break;
case /^[1-5]$/:
a[1]=7;
break;
Expand Down

0 comments on commit bf886e0

Please sign in to comment.