Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GitWrapper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
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
Georg Seibt
GitWrapper
Commits
8c0610b4
Commit
8c0610b4
authored
8 years ago
by
Georg Seibt
Browse files
Options
Downloads
Patches
Plain Diff
typo fixes
parent
33e62773
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/de/uni_passau/fim/seibt/gitwrapper/repo/Git.java
+3
-2
3 additions, 2 deletions
src/de/uni_passau/fim/seibt/gitwrapper/repo/Git.java
with
3 additions
and
2 deletions
src/de/uni_passau/fim/seibt/gitwrapper/repo/Git.java
+
3
−
2
View file @
8c0610b4
...
@@ -18,6 +18,7 @@ public class Git {
...
@@ -18,6 +18,7 @@ public class Git {
public
static
final
int
EXIT_FAIL
=
1
;
public
static
final
int
EXIT_FAIL
=
1
;
private
static
final
Logger
LOG
=
Logger
.
getLogger
(
Git
.
class
.
getCanonicalName
());
private
static
final
Logger
LOG
=
Logger
.
getLogger
(
Git
.
class
.
getCanonicalName
());
private
static
final
Pattern
CLONING_INTO
=
Pattern
.
compile
(
"Cloning into '(.*)'\\.\\.\\."
);
private
static
final
Pattern
CLONING_INTO
=
Pattern
.
compile
(
"Cloning into '(.*)'\\.\\.\\."
);
private
class
ExecRes
{
private
class
ExecRes
{
...
@@ -53,14 +54,14 @@ public class Git {
...
@@ -53,14 +54,14 @@ public class Git {
Matcher
matcher
=
CLONING_INTO
.
matcher
(
sc
.
nextLine
());
Matcher
matcher
=
CLONING_INTO
.
matcher
(
sc
.
nextLine
());
if
(!
matcher
.
find
())
{
if
(!
matcher
.
find
())
{
LOG
.
warning
(()
->
String
.
format
(
"Unexpected output while cloning '%s'"
,
url
));
LOG
.
warning
(()
->
String
.
format
(
"Unexpected output while cloning '%s'
.
"
,
url
));
return
null
;
return
null
;
}
}
String
name
=
matcher
.
group
(
1
);
String
name
=
matcher
.
group
(
1
);
File
repoDir
=
new
File
(
parentDir
,
name
);
File
repoDir
=
new
File
(
parentDir
,
name
);
LOG
.
fine
(()
->
"Cloned "
+
url
+
" into "
+
repoDir
.
getAbsolutePath
());
LOG
.
fine
(()
->
String
.
format
(
"Cloned '%s' into '%s'."
,
url
,
repoDir
.
getAbsolutePath
())
)
;
return
new
Repository
(
this
,
url
,
repoDir
);
return
new
Repository
(
this
,
url
,
repoDir
);
};
};
...
...
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