File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1534,7 +1534,7 @@ assert-repo-is-ready() {
1534
1534
[[ $command =~ ^(help| version| upgrade)$ ]] && return
1535
1535
1536
1536
# We must be inside a git repo:
1537
- git rev-parse --git-dir & > /dev/null ||
1537
+ git rev-parse --is-inside- git-dir & > /dev/null ||
1538
1538
error " Not inside a git repository."
1539
1539
1540
1540
# Get the original branch and commit:
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ if [ ! -f "${HOME}/.gitconfig" ]; then
29
29
git config --global user.name " Your Name"
30
30
git config --global init.defaultBranch " master"
31
31
git config --global --add safe.directory " $( pwd) "
32
+ git config --global --add safe.directory " $( pwd) /.git"
33
+ if ! git symbolic-ref --short --quiet HEAD; then
34
+ git checkout -b test
35
+ fi
32
36
fi
33
37
# To be able to view current GIT confirguration during tests execution,
34
38
# run the test suite by adding the '-v' option to the prove command.
You can’t perform that action at this time.
0 commit comments