-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: respect pushRemote/upstream when pulling
- Loading branch information
Showing
7 changed files
with
183 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/tests/snapshots/gitu__tests__pull__pull_push_remote.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
source: src/tests/pull.rs | ||
expression: ctx.redact_buffer() | ||
--- | ||
▌On branch main | | ||
▌Your branch is up to date with 'origin/main'. | | ||
| | ||
Recent commits | | ||
b66a0bf main origin/main add initial-file | | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
────────────────────────────────────────────────────────────────────────────────| | ||
$ git pull origin refs/heads/main | | ||
From | | ||
* branch main -> FETCH_HEAD | | ||
Already up to date. | | ||
styles_hash: a7f12e4c3c38781e |
25 changes: 25 additions & 0 deletions
25
src/tests/snapshots/gitu__tests__pull__pull_push_remote_prompt.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
source: src/tests/pull.rs | ||
expression: ctx.redact_buffer() | ||
--- | ||
▌On branch main | | ||
▌Your branch is up to date with 'origin/main'. | | ||
| | ||
Recent commits | | ||
b66a0bf main origin/main add initial-file | | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
────────────────────────────────────────────────────────────────────────────────| | ||
? Set pushRemote then pull: › | | ||
styles_hash: e0d524e635f78ab7 |
25 changes: 25 additions & 0 deletions
25
src/tests/snapshots/gitu__tests__pull__pull_set_push_remote_pull_again.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
source: src/tests/pull.rs | ||
expression: ctx.redact_buffer() | ||
--- | ||
▌On branch main | | ||
▌Your branch is up to date with 'origin/main'. | | ||
| | ||
Recent commits | | ||
b66a0bf main origin/main add initial-file | | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
────────────────────────────────────────────────────────────────────────────────| | ||
$ git pull origin refs/heads/main | | ||
From | | ||
* branch main -> FETCH_HEAD | | ||
Already up to date. | | ||
styles_hash: a7f12e4c3c38781e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters