Skip to content

Commit 0b9f1bd

Browse files
- minor changes. Prepare for release 0.2.1
1 parent 23a4423 commit 0b9f1bd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

GitcheckGrailsPlugin.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class GitcheckGrailsPlugin {
22
// the plugin version
3-
def version = "0.2"
3+
def version = "0.2.1"
44
// the version or versions of Grails the plugin is designed for
55
def grailsVersion = "2.0 > *"
66
// the other plugins this plugin depends on

scripts/_Events.groovy

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ eventCreateWarStart = { warName, stagingDir ->
3333

3434
// check unpushed changes
3535
if (!config.scm.skipGitPushedCheck){
36-
assert !grails.plugin.gitcheck.GitClient.branchIsAheadOfRemote(), "Local branch is ahead of origin!"
36+
assert !grails.plugin.gitcheck.GitClient.branchIsAheadOfRemote(), "Local branch is ahead of origin! Please perform push."
3737
} else {
3838
println "Skipping git push check as scm.skipGitPushedCheck is set in Config.groovy"
3939
}
4040

4141
// check origin un-pulled changes
4242
if (!config.scm.skipGitOriginCheck) {
43-
println "Checking if origin is ahead"
43+
// println "Checking if origin is ahead"
4444
assert !grails.plugin.gitcheck.GitClient.remoteIsAheadOfBranch(grails.plugin.gitcheck.GitClient.currentBranchName()), "Origin is ahead of local branch. Please perform pull"
4545
} else {
4646
println "Skipping git origin check as scm.skipGitOriginCheck is set in Config.groovy"

src/groovy/grails/plugin/gitcheck/GitClient.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class GitClient {
2323
def baseDir = repoBasePath;
2424
if (!baseDir && BuildSettingsHolder?.settings?.baseDir) {
2525
baseDir = "${BuildSettingsHolder?.settings?.baseDir}"
26-
println "Basedir $baseDir"
26+
// println "Basedir $baseDir"
2727
} else if (!baseDir) {
2828
baseDir = '.' // fallback
2929
println "using . as repodir"

0 commit comments

Comments
 (0)