Skip to content

Commit

Permalink
Update to point to main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Mar 5, 2023
1 parent c60d699 commit 8310261
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.8.x'
node-version: '16.14.x'
- run: npm install
- run: npm run vscode:prepublish
- run: npm run test
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.8.x'
node-version: '16.14.x'
- run: npm install github-release-notes@0.17.1 -g
- name: Write PreRelease Notes
env:
GREN_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_EVENT_REF: ${{ github.event.ref }}
run: |
tagname="${GITHUB_EVENT_REF/refs\/tags\//}"
gren release --override -d --tags=$tagname
gren release --override -d --tags=$tagname
6 changes: 3 additions & 3 deletions .github/workflows/vsce-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.8.x'
node-version: '16.14.x'
- run: npm install
- run: npm install -g vsce github-release-notes
- name: Read package.json verison
Expand All @@ -22,8 +22,8 @@ jobs:
env:
GREN_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git fetch origin master
git checkout master
git fetch origin main
git checkout main
gren changelog --override
git -c user.name="ole1986" -c user.email="ole.k@web.de" commit --no-verify -m "Updated CHANGELOG.md - Github Actions" -- CHANGELOG.md
git push
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ You can add keyboard short cuts for the above commands by following the directio

NOTE: The file for which the history is to be viewed, must already be opened.

![Image of Git Log](https://raw.githubusercontent.com/DonJayamanne/gitHistoryVSCode/master/images/gitLogv3.gif)
![Image of Git Log](https://raw.githubusercontent.com/DonJayamanne/gitHistoryVSCode/main/images/gitLogv3.gif)

![Image of File History](https://raw.githubusercontent.com/DonJayamanne/gitHistoryVSCode/master/images/fileHistoryCommandv3.gif)
![Image of File History](https://raw.githubusercontent.com/DonJayamanne/gitHistoryVSCode/main/images/fileHistoryCommandv3.gif)

![Image of Line History](https://raw.githubusercontent.com/DonJayamanne/gitHistoryVSCode/master/images/lineHistoryCommandv3.gif)
![Image of Line History](https://raw.githubusercontent.com/DonJayamanne/gitHistoryVSCode/main/images/lineHistoryCommandv3.gif)

![Image of Compare](https://raw.githubusercontent.com/DonJayamanne/gitHistoryVSCode/master/images/compareCommits.gif)
![Image of Compare](https://raw.githubusercontent.com/DonJayamanne/gitHistoryVSCode/main/images/compareCommits.gif)


## Source
Expand All @@ -52,4 +52,4 @@ NOTE: The file for which the history is to be viewed, must already be opened.

## License

[MIT](https://raw.githubusercontent.com/DonJayamanne/bowerVSCode/master/LICENSE)
[MIT](https://raw.githubusercontent.com/DonJayamanne/gitHistoryVSCode/main/LICENSE)
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"name": "githistory",
"displayName": "Git History",
"description": "View git log, file history, compare branches or commits",
"version": "0.6.19",
"version": "0.6.20",
"publisher": "donjayamanne",
"author": {
"name": "Don Jayamanne",
"email": "don.jayamanne@yahoo.com"
},
"license": "MIT",
"homepage": "https://github.com/DonJayamanne/gitHistoryVSCode/blob/master/README.md",
"homepage": "https://github.com/DonJayamanne/gitHistoryVSCode/blob/main/README.md",
"repository": {
"type": "git",
"url": "https://github.com/DonJayamanne/gitHistoryVSCode"
Expand All @@ -23,7 +23,7 @@
"theme": "dark"
},
"engines": {
"vscode": "^1.46.0"
"vscode": "^1.76.0"
},
"categories": [
"Other"
Expand Down
2 changes: 1 addition & 1 deletion src/adapter/repository/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class Git implements IGitService {
let remoteUrl: string | undefined = undefined;

// fetch the remote from local branch using upstreamRef (received only with getBranch)
const remoteName = (await this.repo.getBranch(r.name || 'master')).upstream?.remote;
const remoteName = (await this.repo.getBranch(r.name || 'main')).upstream?.remote;

if (remoteName) {
remoteUrl = this.repo.state.remotes.find(x => x.name === remoteName)?.fetchUrl;
Expand Down

0 comments on commit 8310261

Please sign in to comment.