mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2025-08-03 00:56:08 +08:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
bbd291750d | ||
|
114a5e6044 | ||
|
4a75a2e723 | ||
|
1e826be61c | ||
|
4bab898d25 | ||
|
45872c3c23 |
7
.github/workflows/integration-tests.yml
vendored
7
.github/workflows/integration-tests.yml
vendored
@@ -11,6 +11,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: master
|
ref: master
|
||||||
|
|
||||||
|
- name: Create Remote Branch
|
||||||
|
run: |
|
||||||
|
git checkout -b ci-test
|
||||||
|
git push origin ci-test
|
||||||
|
git checkout master
|
||||||
|
|
||||||
- name: Add Files
|
- name: Add Files
|
||||||
run: touch {a,b,c}.txt
|
run: touch {a,b,c}.txt
|
||||||
|
|
||||||
@@ -20,7 +26,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
branch: ci-test
|
branch: ci-test
|
||||||
commit_message: Message
|
commit_message: Message
|
||||||
checkout_options: -b
|
|
||||||
|
|
||||||
- name: Delete Branch
|
- name: Delete Branch
|
||||||
run: git push -d origin ci-test
|
run: git push -d origin ci-test
|
||||||
|
16
CHANGELOG.md
16
CHANGELOG.md
@@ -4,18 +4,26 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.7.1...HEAD)
|
## [Unreleased](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.7.2...HEAD)
|
||||||
|
|
||||||
> TBD
|
> TBD
|
||||||
|
|
||||||
|
|
||||||
## [v4.7.1](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.7.0...v4.7.1) - 2020-10-12
|
## [v4.7.2](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.7.1...v4.7.2) - 2020-10-24
|
||||||
|
|
||||||
### Removed
|
This release basically reverts the Action to the state of `v4.6.0`.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Revert change to fix git-checkout with special characters in branch names [#122](https://github.com/stefanzweifel/git-auto-commit-action/pull/122)
|
||||||
|
|
||||||
|
|
||||||
|
## [v4.7.1](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.7.0...v4.7.1) - 2020-10-22
|
||||||
|
|
||||||
|
### Removed
|
||||||
- Remove `checkout_options` as it broke everything [#120](https://github.com/stefanzweifel/git-auto-commit-action/pull/120/)
|
- Remove `checkout_options` as it broke everything [#120](https://github.com/stefanzweifel/git-auto-commit-action/pull/120/)
|
||||||
|
|
||||||
|
|
||||||
## [v4.7.0](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.6.0...v4.7.0) - 2020-10-11
|
## [v4.7.0](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4.6.0...v4.7.0) - 2020-10-21
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- Add `checkout_options` [#115](https://github.com/stefanzweifel/git-auto-commit-action/pull/115)
|
- Add `checkout_options` [#115](https://github.com/stefanzweifel/git-auto-commit-action/pull/115)
|
||||||
|
@@ -44,7 +44,8 @@ _switch_to_branch() {
|
|||||||
git fetch;
|
git fetch;
|
||||||
|
|
||||||
# Switch to branch from current Workflow run
|
# Switch to branch from current Workflow run
|
||||||
git checkout "$INPUT_BRANCH" --;
|
# shellcheck disable=SC2086
|
||||||
|
git checkout $INPUT_BRANCH;
|
||||||
}
|
}
|
||||||
|
|
||||||
_add_files() {
|
_add_files() {
|
||||||
|
@@ -71,7 +71,7 @@ main() {
|
|||||||
|
|
||||||
shellmock_expect git --type partial --output " M new-file-1.txt M new-file-2.txt M new-file-3.txt" --match "status"
|
shellmock_expect git --type partial --output " M new-file-1.txt M new-file-2.txt M new-file-3.txt" --match "status"
|
||||||
shellmock_expect git --type exact --match "fetch"
|
shellmock_expect git --type exact --match "fetch"
|
||||||
shellmock_expect git --type exact --match "checkout master --"
|
shellmock_expect git --type exact --match "checkout master"
|
||||||
shellmock_expect git --type partial --match "add ."
|
shellmock_expect git --type partial --match "add ."
|
||||||
shellmock_expect git --type partial --match '-c'
|
shellmock_expect git --type partial --match '-c'
|
||||||
shellmock_expect git --type partial --match 'push --set-upstream origin'
|
shellmock_expect git --type partial --match 'push --set-upstream origin'
|
||||||
@@ -99,7 +99,7 @@ main() {
|
|||||||
shellmock_verify
|
shellmock_verify
|
||||||
[ "${capture[0]}" = "git-stub status -s -- ." ]
|
[ "${capture[0]}" = "git-stub status -s -- ." ]
|
||||||
[ "${capture[1]}" = "git-stub fetch" ]
|
[ "${capture[1]}" = "git-stub fetch" ]
|
||||||
[ "${capture[2]}" = "git-stub checkout master --" ]
|
[ "${capture[2]}" = "git-stub checkout master" ]
|
||||||
[ "${capture[3]}" = "git-stub add ." ]
|
[ "${capture[3]}" = "git-stub add ." ]
|
||||||
[ "${capture[4]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com commit -m Commit Message --author=Test Suite <test@users.noreply.github.com>" ]
|
[ "${capture[4]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com commit -m Commit Message --author=Test Suite <test@users.noreply.github.com>" ]
|
||||||
[ "${capture[5]}" = "git-stub push --set-upstream origin HEAD:master --tags" ]
|
[ "${capture[5]}" = "git-stub push --set-upstream origin HEAD:master --tags" ]
|
||||||
@@ -111,7 +111,7 @@ main() {
|
|||||||
|
|
||||||
shellmock_expect git --type exact --match "status -s ."
|
shellmock_expect git --type exact --match "status -s ."
|
||||||
shellmock_expect git --type exact --match "fetch"
|
shellmock_expect git --type exact --match "fetch"
|
||||||
shellmock_expect git --type exact --match "checkout master --"
|
shellmock_expect git --type exact --match "checkout master"
|
||||||
shellmock_expect git --type exact --match "add ."
|
shellmock_expect git --type exact --match "add ."
|
||||||
shellmock_expect git --type partial --match '-c'
|
shellmock_expect git --type partial --match '-c'
|
||||||
shellmock_expect git --type partial --match 'push origin'
|
shellmock_expect git --type partial --match 'push origin'
|
||||||
@@ -123,7 +123,7 @@ main() {
|
|||||||
shellmock_verify
|
shellmock_verify
|
||||||
[ "${capture[0]}" = "git-stub status -s -- ." ]
|
[ "${capture[0]}" = "git-stub status -s -- ." ]
|
||||||
[ "${capture[1]}" = "git-stub fetch" ]
|
[ "${capture[1]}" = "git-stub fetch" ]
|
||||||
[ "${capture[2]}" = "git-stub checkout master --" ]
|
[ "${capture[2]}" = "git-stub checkout master" ]
|
||||||
[ "${capture[3]}" = "git-stub add ." ]
|
[ "${capture[3]}" = "git-stub add ." ]
|
||||||
[ "${capture[4]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com commit -m Commit Message --author=Test Suite <test@users.noreply.github.com>" ]
|
[ "${capture[4]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com commit -m Commit Message --author=Test Suite <test@users.noreply.github.com>" ]
|
||||||
[ "${capture[5]}" = "git-stub push --set-upstream origin HEAD:master --tags" ]
|
[ "${capture[5]}" = "git-stub push --set-upstream origin HEAD:master --tags" ]
|
||||||
@@ -148,7 +148,7 @@ main() {
|
|||||||
|
|
||||||
shellmock_expect git --type partial --output " M new-file-1.html M new-file-2.html" --match "status"
|
shellmock_expect git --type partial --output " M new-file-1.html M new-file-2.html" --match "status"
|
||||||
shellmock_expect git --type exact --match "fetch"
|
shellmock_expect git --type exact --match "fetch"
|
||||||
shellmock_expect git --type exact --match "checkout master --"
|
shellmock_expect git --type exact --match "checkout master"
|
||||||
shellmock_expect git --type partial --match "add"
|
shellmock_expect git --type partial --match "add"
|
||||||
shellmock_expect git --type partial --match '-c'
|
shellmock_expect git --type partial --match '-c'
|
||||||
shellmock_expect git --type partial --match 'push --set-upstream origin'
|
shellmock_expect git --type partial --match 'push --set-upstream origin'
|
||||||
@@ -167,7 +167,7 @@ main() {
|
|||||||
shellmock_verify
|
shellmock_verify
|
||||||
[ "${capture[0]}" = "git-stub status -s -- a.txt b.txt c.txt new-file-1.html new-file-2.html" ]
|
[ "${capture[0]}" = "git-stub status -s -- a.txt b.txt c.txt new-file-1.html new-file-2.html" ]
|
||||||
[ "${capture[1]}" = "git-stub fetch" ]
|
[ "${capture[1]}" = "git-stub fetch" ]
|
||||||
[ "${capture[2]}" = "git-stub checkout master --" ]
|
[ "${capture[2]}" = "git-stub checkout master" ]
|
||||||
[ "${capture[3]}" = "git-stub add a.txt b.txt c.txt new-file-1.html new-file-2.html" ]
|
[ "${capture[3]}" = "git-stub add a.txt b.txt c.txt new-file-1.html new-file-2.html" ]
|
||||||
[ "${capture[4]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com commit -m Commit Message --author=Test Suite <test@users.noreply.github.com>" ]
|
[ "${capture[4]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com commit -m Commit Message --author=Test Suite <test@users.noreply.github.com>" ]
|
||||||
[ "${capture[5]}" = "git-stub push --set-upstream origin HEAD:master --tags" ]
|
[ "${capture[5]}" = "git-stub push --set-upstream origin HEAD:master --tags" ]
|
||||||
@@ -181,7 +181,7 @@ main() {
|
|||||||
|
|
||||||
shellmock_expect git --type partial --output " M new-file-1.txt M new-file-2.txt" --match "status"
|
shellmock_expect git --type partial --output " M new-file-1.txt M new-file-2.txt" --match "status"
|
||||||
shellmock_expect git --type exact --match "fetch"
|
shellmock_expect git --type exact --match "fetch"
|
||||||
shellmock_expect git --type exact --match "checkout master --"
|
shellmock_expect git --type exact --match "checkout master"
|
||||||
shellmock_expect git --type partial --match "add"
|
shellmock_expect git --type partial --match "add"
|
||||||
shellmock_expect git --type partial --match '-c'
|
shellmock_expect git --type partial --match '-c'
|
||||||
shellmock_expect git --type partial --match 'push --set-upstream origin'
|
shellmock_expect git --type partial --match 'push --set-upstream origin'
|
||||||
@@ -198,7 +198,7 @@ main() {
|
|||||||
shellmock_verify
|
shellmock_verify
|
||||||
[ "${capture[0]}" = "git-stub status -s -- ." ]
|
[ "${capture[0]}" = "git-stub status -s -- ." ]
|
||||||
[ "${capture[1]}" = "git-stub fetch" ]
|
[ "${capture[1]}" = "git-stub fetch" ]
|
||||||
[ "${capture[2]}" = "git-stub checkout master --" ]
|
[ "${capture[2]}" = "git-stub checkout master" ]
|
||||||
[ "${capture[3]}" = "git-stub add ." ]
|
[ "${capture[3]}" = "git-stub add ." ]
|
||||||
[ "${capture[4]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com commit -m Commit Message --author=Test Suite <test@users.noreply.github.com> --no-verify --signoff" ]
|
[ "${capture[4]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com commit -m Commit Message --author=Test Suite <test@users.noreply.github.com> --no-verify --signoff" ]
|
||||||
[ "${capture[5]}" = "git-stub push --set-upstream origin HEAD:master --tags" ]
|
[ "${capture[5]}" = "git-stub push --set-upstream origin HEAD:master --tags" ]
|
||||||
@@ -214,7 +214,7 @@ main() {
|
|||||||
|
|
||||||
shellmock_expect git --type partial --output " M new-file-1.txt M new-file-2.txt" --match "status"
|
shellmock_expect git --type partial --output " M new-file-1.txt M new-file-2.txt" --match "status"
|
||||||
shellmock_expect git --type exact --match "fetch"
|
shellmock_expect git --type exact --match "fetch"
|
||||||
shellmock_expect git --type exact --match "checkout master --"
|
shellmock_expect git --type exact --match "checkout master"
|
||||||
shellmock_expect git --type partial --match "add"
|
shellmock_expect git --type partial --match "add"
|
||||||
shellmock_expect git --type partial --match '-c'
|
shellmock_expect git --type partial --match '-c'
|
||||||
shellmock_expect git --type partial --match 'push --set-upstream origin'
|
shellmock_expect git --type partial --match 'push --set-upstream origin'
|
||||||
@@ -231,7 +231,7 @@ main() {
|
|||||||
shellmock_verify
|
shellmock_verify
|
||||||
[ "${capture[0]}" = "git-stub status -s -- ." ]
|
[ "${capture[0]}" = "git-stub status -s -- ." ]
|
||||||
[ "${capture[1]}" = "git-stub fetch" ]
|
[ "${capture[1]}" = "git-stub fetch" ]
|
||||||
[ "${capture[2]}" = "git-stub checkout master --" ]
|
[ "${capture[2]}" = "git-stub checkout master" ]
|
||||||
[ "${capture[3]}" = "git-stub add ." ]
|
[ "${capture[3]}" = "git-stub add ." ]
|
||||||
[ "${capture[4]}" = "git-stub -c user.name=A Single Test -c user.email=single-test@github.com commit -m Commit Message --author=A Single Test <single@users.noreply.github.com>" ]
|
[ "${capture[4]}" = "git-stub -c user.name=A Single Test -c user.email=single-test@github.com commit -m Commit Message --author=A Single Test <single@users.noreply.github.com>" ]
|
||||||
[ "${capture[5]}" = "git-stub push --set-upstream origin HEAD:master --tags" ]
|
[ "${capture[5]}" = "git-stub push --set-upstream origin HEAD:master --tags" ]
|
||||||
@@ -245,7 +245,7 @@ main() {
|
|||||||
|
|
||||||
shellmock_expect git --type partial --output " M new-file-1.txt M new-file-2.txt M new-file-3.txt" --match "status"
|
shellmock_expect git --type partial --output " M new-file-1.txt M new-file-2.txt M new-file-3.txt" --match "status"
|
||||||
shellmock_expect git --type exact --match "fetch"
|
shellmock_expect git --type exact --match "fetch"
|
||||||
shellmock_expect git --type exact --match "checkout master --"
|
shellmock_expect git --type exact --match "checkout master"
|
||||||
shellmock_expect git --type partial --match "add ."
|
shellmock_expect git --type partial --match "add ."
|
||||||
shellmock_expect git --type partial --match '-c'
|
shellmock_expect git --type partial --match '-c'
|
||||||
shellmock_expect git --type partial --match 'push --set-upstream origin'
|
shellmock_expect git --type partial --match 'push --set-upstream origin'
|
||||||
@@ -265,7 +265,7 @@ main() {
|
|||||||
shellmock_verify
|
shellmock_verify
|
||||||
[ "${capture[0]}" = "git-stub status -s -- ." ]
|
[ "${capture[0]}" = "git-stub status -s -- ." ]
|
||||||
[ "${capture[1]}" = "git-stub fetch" ]
|
[ "${capture[1]}" = "git-stub fetch" ]
|
||||||
[ "${capture[2]}" = "git-stub checkout master --" ]
|
[ "${capture[2]}" = "git-stub checkout master" ]
|
||||||
[ "${capture[3]}" = "git-stub add ." ]
|
[ "${capture[3]}" = "git-stub add ." ]
|
||||||
[ "${capture[4]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com commit -m Commit Message --author=Test Suite <test@users.noreply.github.com>" ]
|
[ "${capture[4]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com commit -m Commit Message --author=Test Suite <test@users.noreply.github.com>" ]
|
||||||
[ "${capture[5]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com tag -a v1.0.0 -m v1.0.0" ]
|
[ "${capture[5]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com tag -a v1.0.0 -m v1.0.0" ]
|
||||||
@@ -281,7 +281,7 @@ main() {
|
|||||||
|
|
||||||
shellmock_expect git --type partial --output " M new-file-1.txt M new-file-2.txt M new-file-3.txt" --match "status"
|
shellmock_expect git --type partial --output " M new-file-1.txt M new-file-2.txt M new-file-3.txt" --match "status"
|
||||||
shellmock_expect git --type exact --match "fetch"
|
shellmock_expect git --type exact --match "fetch"
|
||||||
shellmock_expect git --type exact --match "checkout master --"
|
shellmock_expect git --type exact --match "checkout master"
|
||||||
shellmock_expect git --type partial --match "add ."
|
shellmock_expect git --type partial --match "add ."
|
||||||
shellmock_expect git --type partial --match '-c'
|
shellmock_expect git --type partial --match '-c'
|
||||||
shellmock_expect git --type partial --match 'push --set-upstream origin'
|
shellmock_expect git --type partial --match 'push --set-upstream origin'
|
||||||
@@ -301,7 +301,7 @@ main() {
|
|||||||
shellmock_verify
|
shellmock_verify
|
||||||
[ "${capture[0]}" = "git-stub status -s -- ." ]
|
[ "${capture[0]}" = "git-stub status -s -- ." ]
|
||||||
[ "${capture[1]}" = "git-stub fetch" ]
|
[ "${capture[1]}" = "git-stub fetch" ]
|
||||||
[ "${capture[2]}" = "git-stub checkout master --" ]
|
[ "${capture[2]}" = "git-stub checkout master" ]
|
||||||
[ "${capture[3]}" = "git-stub add ." ]
|
[ "${capture[3]}" = "git-stub add ." ]
|
||||||
[ "${capture[4]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com commit -m Commit Message --author=Test Suite <test@users.noreply.github.com>" ]
|
[ "${capture[4]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com commit -m Commit Message --author=Test Suite <test@users.noreply.github.com>" ]
|
||||||
[ "${capture[5]}" = "git-stub push --set-upstream origin HEAD:master --tags --force" ]
|
[ "${capture[5]}" = "git-stub push --set-upstream origin HEAD:master --tags --force" ]
|
||||||
@@ -316,7 +316,7 @@ main() {
|
|||||||
|
|
||||||
shellmock_expect git --type partial --output " M new-file-1.txt M new-file-2.txt M new-file-3.txt" --match "status"
|
shellmock_expect git --type partial --output " M new-file-1.txt M new-file-2.txt M new-file-3.txt" --match "status"
|
||||||
shellmock_expect git --type exact --match "fetch"
|
shellmock_expect git --type exact --match "fetch"
|
||||||
shellmock_expect git --type exact --match "checkout foo --"
|
shellmock_expect git --type exact --match "checkout foo"
|
||||||
shellmock_expect git --type partial --match "add ."
|
shellmock_expect git --type partial --match "add ."
|
||||||
shellmock_expect git --type partial --match '-c'
|
shellmock_expect git --type partial --match '-c'
|
||||||
shellmock_expect git --type partial --match 'push --set-upstream origin'
|
shellmock_expect git --type partial --match 'push --set-upstream origin'
|
||||||
@@ -344,7 +344,7 @@ main() {
|
|||||||
shellmock_verify
|
shellmock_verify
|
||||||
[ "${capture[0]}" = "git-stub status -s -- ." ]
|
[ "${capture[0]}" = "git-stub status -s -- ." ]
|
||||||
[ "${capture[1]}" = "git-stub fetch" ]
|
[ "${capture[1]}" = "git-stub fetch" ]
|
||||||
[ "${capture[2]}" = "git-stub checkout foo --" ]
|
[ "${capture[2]}" = "git-stub checkout foo" ]
|
||||||
[ "${capture[3]}" = "git-stub add ." ]
|
[ "${capture[3]}" = "git-stub add ." ]
|
||||||
[ "${capture[4]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com commit -m Commit Message --author=Test Suite <test@users.noreply.github.com>" ]
|
[ "${capture[4]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com commit -m Commit Message --author=Test Suite <test@users.noreply.github.com>" ]
|
||||||
[ "${capture[5]}" = "git-stub push --set-upstream origin HEAD:foo --tags" ]
|
[ "${capture[5]}" = "git-stub push --set-upstream origin HEAD:foo --tags" ]
|
||||||
@@ -359,7 +359,7 @@ main() {
|
|||||||
|
|
||||||
shellmock_expect git --type partial --output " M new-file-1.txt M new-file-2.txt M new-file-3.txt" --match "status"
|
shellmock_expect git --type partial --output " M new-file-1.txt M new-file-2.txt M new-file-3.txt" --match "status"
|
||||||
shellmock_expect git --type exact --match "fetch"
|
shellmock_expect git --type exact --match "fetch"
|
||||||
shellmock_expect git --type exact --match "checkout --"
|
shellmock_expect git --type exact --match "checkout"
|
||||||
shellmock_expect git --type partial --match "add ."
|
shellmock_expect git --type partial --match "add ."
|
||||||
shellmock_expect git --type partial --match '-c'
|
shellmock_expect git --type partial --match '-c'
|
||||||
shellmock_expect git --type partial --match 'push origin'
|
shellmock_expect git --type partial --match 'push origin'
|
||||||
@@ -387,7 +387,7 @@ main() {
|
|||||||
shellmock_verify
|
shellmock_verify
|
||||||
[ "${capture[0]}" = "git-stub status -s -- ." ]
|
[ "${capture[0]}" = "git-stub status -s -- ." ]
|
||||||
[ "${capture[1]}" = "git-stub fetch" ]
|
[ "${capture[1]}" = "git-stub fetch" ]
|
||||||
[ "${capture[2]}" = "git-stub checkout --" ]
|
[ "${capture[2]}" = "git-stub checkout" ]
|
||||||
[ "${capture[3]}" = "git-stub add ." ]
|
[ "${capture[3]}" = "git-stub add ." ]
|
||||||
[ "${capture[4]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com commit -m Commit Message --author=Test Suite <test@users.noreply.github.com>" ]
|
[ "${capture[4]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com commit -m Commit Message --author=Test Suite <test@users.noreply.github.com>" ]
|
||||||
[ "${capture[5]}" = "git-stub push origin" ]
|
[ "${capture[5]}" = "git-stub push origin" ]
|
||||||
@@ -402,7 +402,7 @@ main() {
|
|||||||
|
|
||||||
shellmock_expect git --type partial --output " M new-file-1.txt M new-file-2.txt M new-file-3.txt" --match "status"
|
shellmock_expect git --type partial --output " M new-file-1.txt M new-file-2.txt M new-file-3.txt" --match "status"
|
||||||
shellmock_expect git --type exact --match "fetch"
|
shellmock_expect git --type exact --match "fetch"
|
||||||
shellmock_expect git --type exact --match "checkout --"
|
shellmock_expect git --type exact --match "checkout"
|
||||||
shellmock_expect git --type partial --match "add ."
|
shellmock_expect git --type partial --match "add ."
|
||||||
shellmock_expect git --type partial --match '-c'
|
shellmock_expect git --type partial --match '-c'
|
||||||
shellmock_expect git --type partial --match 'push origin'
|
shellmock_expect git --type partial --match 'push origin'
|
||||||
@@ -430,7 +430,7 @@ main() {
|
|||||||
shellmock_verify
|
shellmock_verify
|
||||||
[ "${capture[0]}" = "git-stub status -s -- ." ]
|
[ "${capture[0]}" = "git-stub status -s -- ." ]
|
||||||
[ "${capture[1]}" = "git-stub fetch" ]
|
[ "${capture[1]}" = "git-stub fetch" ]
|
||||||
[ "${capture[2]}" = "git-stub checkout --" ]
|
[ "${capture[2]}" = "git-stub checkout" ]
|
||||||
[ "${capture[3]}" = "git-stub add ." ]
|
[ "${capture[3]}" = "git-stub add ." ]
|
||||||
[ "${capture[4]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com commit -m Commit Message --author=Test Suite <test@users.noreply.github.com>" ]
|
[ "${capture[4]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com commit -m Commit Message --author=Test Suite <test@users.noreply.github.com>" ]
|
||||||
[ "${capture[5]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com tag -a v2.0.0 -m v2.0.0" ]
|
[ "${capture[5]}" = "git-stub -c user.name=Test Suite -c user.email=test@github.com tag -a v2.0.0 -m v2.0.0" ]
|
||||||
|
Reference in New Issue
Block a user