Skip to content

Commit 0bde17d

Browse files
Remove git client
fixes: why the check for ensureAllChangesAreCommitted #104
1 parent d29699c commit 0bde17d

File tree

2 files changed

+0
-91
lines changed

2 files changed

+0
-91
lines changed

src/main/java/com/bazel_diff/GitClient.java

Lines changed: 0 additions & 81 deletions
This file was deleted.

src/main/java/com/bazel_diff/main.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ public Integer call() throws IOException {
115115
System.out.println("outputPath was not provided! Exiting");
116116
return ExitCode.USAGE;
117117
}
118-
GitClient gitClient = new GitClientImpl(workspacePath);
119118
BazelClient bazelClient = new BazelClientImpl(
120119
workspacePath,
121120
bazelPath,
@@ -125,15 +124,6 @@ public Integer call() throws IOException {
125124
keepGoing
126125
);
127126
TargetHashingClient hashingClient = new TargetHashingClientImpl(bazelClient, new FilesClientImp());
128-
try {
129-
gitClient.ensureAllChangesAreCommitted();
130-
} catch (IOException | InterruptedException e) {
131-
e.printStackTrace();
132-
return ExitCode.SOFTWARE;
133-
} catch (GitClientException e) {
134-
System.out.println(String.format("There are active changes in '%s', please commit these changes before running bazel-diffs", workspacePath));
135-
return ExitCode.USAGE;
136-
}
137127
Gson gson = new Gson();
138128
FileReader startingFileReader;
139129
FileReader finalFileReader;

0 commit comments

Comments
 (0)