-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #219 from yut23/fix-pull-symlinking
Fix pull not symlinking new and renamed files
- Loading branch information
Showing
5 changed files
with
442 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
|
||
# shellcheck disable=2164 | ||
fixture_pull_renamed() { | ||
local git_username="Homeshick user" | ||
local git_useremail="[email protected]" | ||
local repo="$REPO_FIXTURES/pull-renamed" | ||
git init "$repo" | ||
cd "$repo" | ||
git config user.name "$git_username" | ||
git config user.email "$git_useremail" | ||
mkdir home | ||
cd home | ||
|
||
cat > .bashrc-wrong-name <<EOF | ||
#!/usr/bin/env bash | ||
PS1='\[33[01;32m\]\u@\h\[33[00m\]:\[33[01;34m\]\w\' | ||
EOF | ||
git add .bashrc-wrong-name | ||
git commit -m '.bashrc file for my new repo' | ||
|
||
git mv .bashrc-wrong-name .bashrc | ||
git commit -m 'fixed .bashrc file name' | ||
|
||
cat >> .bashrc <<EOF | ||
export IMPORTANT_VARIABLE=1 | ||
EOF | ||
git add .bashrc | ||
git commit -m 'Modified .bashrc to set IMPORTANT_VARIABLE' | ||
} | ||
|
||
fixture_pull_renamed > /dev/null |
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,36 @@ | ||
#!/usr/bin/env bash | ||
|
||
# shellcheck disable=2164 | ||
fixture_pull_test() { | ||
local git_username="Homeshick user" | ||
local git_useremail="[email protected]" | ||
local repo="$REPO_FIXTURES/pull-test" | ||
git init "$repo" | ||
cd "$repo" | ||
git config user.name "$git_username" | ||
git config user.email "$git_useremail" | ||
mkdir home | ||
cd home | ||
|
||
cat > .bashrc <<EOF | ||
#!/usr/bin/env bash | ||
PS1='\[33[01;32m\]\u@\h\[33[00m\]:\[33[01;34m\]\w\' | ||
EOF | ||
git add .bashrc | ||
git commit -m '.bashrc file for my new pull-test repo' | ||
|
||
cat > .gitignore <<EOF | ||
.DS_Store | ||
*.swp | ||
EOF | ||
git add .gitignore | ||
git commit -m 'Added .gitignore file' | ||
|
||
cat >> .bashrc <<EOF | ||
export IMPORTANT_VARIABLE=1 | ||
EOF | ||
git add .bashrc | ||
git commit -m 'Modified .bashrc to set IMPORTANT_VARIABLE' | ||
} | ||
|
||
fixture_pull_test > /dev/null |
Oops, something went wrong.