Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
klaus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
jonashaag
klaus
Commits
aa692c05
Unverified
Commit
aa692c05
authored
7 years ago
by
Jonas Haag
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #207 from bittracker/issue-144
Fixes #144 - Blank Git user config for tests
parents
c6e02801
c85ec1f9
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/repos/scripts/dont-render
+6
-1
6 additions, 1 deletion
tests/repos/scripts/dont-render
tests/repos/scripts/no-newline-at-end-of-file
+7
-2
7 additions, 2 deletions
tests/repos/scripts/no-newline-at-end-of-file
tests/repos/scripts/test_repo
+8
-3
8 additions, 3 deletions
tests/repos/scripts/test_repo
with
21 additions
and
6 deletions
tests/repos/scripts/dont-render
+
6
−
1
View file @
aa692c05
#!/bin/bash -e
# This should prevent this script to load the local git user config:
# (HOME overwrite)
HOME
=
"."
git init
# Create binary
...
...
@@ -13,4 +18,4 @@ git add image.jpg
yes
|
head
-n
102400
>
toolarge
git add toolarge
git commit
--no-gpg-sign
-am
first
git commit
-am
first
This diff is collapsed.
Click to expand it.
tests/repos/scripts/no-newline-at-end-of-file
+
7
−
2
View file @
aa692c05
#!/bin/bash -e
# This should prevent this script to load the local git user config:
# (HOME overwrite)
HOME
=
"."
git init
echo
1
>
test
echo
-n
2
>>
test
git add
test
git commit
--no-gpg-sign
-m
old
git commit
-m
old
echo
1
>
test
echo
2
>>
test
git add
test
git commit
--no-gpg-sign
-m
new
git commit
-m
new
This diff is collapsed.
Click to expand it.
tests/repos/scripts/test_repo
+
8
−
3
View file @
aa692c05
#!/bin/bash -e
# This should prevent this script to load the local git user config:
# (HOME overwrite)
HOME
=
"."
git init
echo
"int a;"
>
test.c
echo
"function test() {}"
>
test.js
git add test.c
git add test.js
git commit
--no-gpg-sign
-m
"Add some code"
git commit
-m
"Add some code"
git commit
--no-gpg-sign
--allow-empty
-m
"Empty commit 1"
git commit
--allow-empty
-m
"Empty commit 1"
git tag tag1
git commit
--no-gpg-sign
--allow-empty
-m
"Empty commit 2"
git commit
--allow-empty
-m
"Empty commit 2"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment