Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring + Issue #56 GitHub default branch #263

Merged
merged 5 commits into from Feb 15, 2017
Merged

Refactoring + Issue #56 GitHub default branch #263

merged 5 commits into from Feb 15, 2017

Conversation

foxmk
Copy link
Contributor

@foxmk foxmk commented Feb 13, 2017

This PR provides refactoring to git interaction module to make it more testable
and adds test for git interaction.

Besides that, it fixes #56 because now default branch is taken
from symref in cloned repository.

Refactor JGitHelper to inject dependencies for
interacting with git and rendering the template.
This allows to test Git and JGitInteractor classes
independently.

Due to checking default branch to checkout by looking
into HEAD symref of the cloned repo, this fixes #56
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This removed Apache header should be added back to all new files.

@foxmk
Copy link
Contributor Author

foxmk commented Feb 15, 2017

Strange error. Actually, it occurs even before PR changes. The problem is in plugin/src/sbt-test/giter8/simple/test:3, it calls task in plugin/src/sbt-test/giter8/simple/build.sbt:

TaskKey[Unit]("writeInvalidFile") := {
  IO.write(file("src/main/g8/src/test/scala/invalid.scala"), "invalid file")
}

and then tries to compile the code.

I do not understand, shouldn't it fail by design? This is invalid scala code, it won't compile.

UPD: Sorry, the problem was in sbt-header plugin. It is incompatible with Java 1.6.

sbt-header plugin requires Java 1.7+.
@eed3si9n eed3si9n merged commit aa0476c into foundweekends:0.7.x Feb 15, 2017
@foxmk foxmk deleted the issue/56-github-master-branch branch February 15, 2017 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants