-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
vi
as the default editor during testing and debugging
All testing and debugging activities are performed within a Docker container. And sometimes, the real editor is required to make some experiments. As the dummy editor was used, some commands were failed as it does not work. For instance, when an interactive rebase is executed. As the solution, the `vi` editor now is used the default editor for git. It is available in our alpine-based Docker image, that's why the CI will work without changes.
- Loading branch information
Showing
5 changed files
with
9 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ pipeline() { | |
echo "Installation...." | ||
git config --global user.name "Elegant Git" | ||
git config --global user.email [email protected] | ||
git config --global core.editor some-editor | ||
git config --global core.editor vi | ||
git config --global elegant.acquired true | ||
./install.bash /usr/local src | ||
echo "'Unknown command' testing..." | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ repo-new() { | |
perform-verbose git init | ||
perform-verbose git config --local user.email "\"[email protected]\"" | ||
perform-verbose git config --local user.name "\"Elegant Git\"" | ||
perform-verbose git config --local core.editor "\"edi\"" | ||
perform-verbose git config --local core.editor "\"vi\"" | ||
perform-verbose touch ${FILE_TO_MODIFY} | ||
perform-verbose git add . | ||
perform-verbose git commit -m "\"Add ${FILE_TO_MODIFY}\"" | ||
|
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 |
---|---|---|
|
@@ -28,8 +28,8 @@ teardown() { | |
[[ "${lines[@]}" =~ "==>> git config --global user.name Elegant Git" ]] | ||
[[ "${lines[@]}" =~ "What is your user email? {[email protected]}: " ]] | ||
[[ "${lines[@]}" =~ "==>> git config --global user.email [email protected]" ]] | ||
[[ "${lines[@]}" =~ "Please specify a command to start the editor. {edi}: " ]] | ||
[[ "${lines[@]}" =~ "==>> git config --global core.editor edi" ]] | ||
[[ "${lines[@]}" =~ "Please specify a command to start the editor. {vi}: " ]] | ||
[[ "${lines[@]}" =~ "==>> git config --global core.editor vi" ]] | ||
} | ||
|
||
@test "'acquire-git': standards are configured as expected on Windows" { | ||
|
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 |
---|---|---|
|
@@ -25,8 +25,8 @@ teardown() { | |
[[ "${lines[@]}" =~ "==>> git config --local user.name Elegant Git" ]] | ||
[[ "${lines[@]}" =~ "What is your user email? {[email protected]}: " ]] | ||
[[ "${lines[@]}" =~ "==>> git config --local user.email [email protected]" ]] | ||
[[ "${lines[@]}" =~ "Please specify a command to start the editor. {edi}: " ]] | ||
[[ "${lines[@]}" =~ "==>> git config --local core.editor edi" ]] | ||
[[ "${lines[@]}" =~ "Please specify a command to start the editor. {vi}: " ]] | ||
[[ "${lines[@]}" =~ "==>> git config --local core.editor vi" ]] | ||
} | ||
|
||
@test "'acquire-repository': standards are configured as expected on Windows" { | ||
|
@@ -101,8 +101,8 @@ teardown() { | |
[[ "${lines[@]}" =~ "==>> git config --local user.name Elegant Git" ]] | ||
[[ "${lines[@]}" =~ "What is your user email? {[email protected]}: " ]] | ||
[[ "${lines[@]}" =~ "==>> git config --local user.email [email protected]" ]] | ||
[[ ! "${lines[@]}" =~ "Please specify a command to start the editor. {edi}: " ]] | ||
[[ ! "${lines[@]}" =~ "==>> git config --local core.editor edi" ]] | ||
[[ ! "${lines[@]}" =~ "Please specify a command to start the editor. {vi}: " ]] | ||
[[ ! "${lines[@]}" =~ "==>> git config --local core.editor vi" ]] | ||
[[ ! "${lines[@]}" =~ "==>> git config --local core.commentChar |" ]] | ||
[[ "${lines[@]}" =~ "1 Elegant Git aliases were removed." ]] | ||
[[ ! "${lines[@]}" =~ "==>> git config --local alias.acquire-repository elegant acquire-repository" ]] | ||
|
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 |
---|---|---|
|
@@ -33,7 +33,7 @@ repository() { | |
cd /eg | ||
git config --global user.name \"Elegant Git\" | ||
git config --global user.email [email protected] | ||
git config --global core.editor some-editor | ||
git config --global core.editor vi | ||
git config --global elegant.acquired true | ||
./install.bash /usr/local src | ||
" | ||
|