Skip to content

Commit fb3bc8d

Browse files
authored
Merge pull request #567 from nicolaiskogheim/git-pull-request-fix#546
pull-request: should read local config if present
2 parents 3aafbc6 + ebe7448 commit fb3bc8d

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

bin/git-pull-request

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ EOF
3030

3131
# user
3232

33-
user=$(git config --global user.email)
33+
user=$(git config user.email)
3434
test -z "$user" && abort "git config user.email required"
3535

3636
# branch

man/git-pull-request.1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.\" generated with Ronn/v0.7.3
22
.\" http://github.com/rtomayko/ronn/tree/0.7.3
33
.
4-
.TH "GIT\-PULL\-REQUEST" "1" "July 2016" "" ""
4+
.TH "GIT\-PULL\-REQUEST" "1" "August 2016" "" "Git Extras"
55
.
66
.SH "NAME"
77
\fBgit\-pull\-request\fR \- Create pull request for GitHub project
@@ -12,6 +12,9 @@
1212
.SH "DESCRIPTION"
1313
Create pull request for a project on GitHub via commandline\.
1414
.
15+
.P
16+
Uses the email from \fBgit config user\.email\fR to open the pull request\.
17+
.
1518
.SH "OPTIONS"
1619
<target branch>
1720
.

man/git-pull-request.html

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/git-pull-request.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ git-pull-request(1) -- Create pull request for GitHub project
99

1010
Create pull request for a project on GitHub via commandline.
1111

12+
Uses the email from `git config user.email` to open the pull request.
13+
1214
## OPTIONS
1315

1416
&lt;target branch&gt;

0 commit comments

Comments
 (0)