@@ -131,7 +131,7 @@ public extension ShellOutCommand {
131
131
}
132
132
133
133
/// Clone a git repository at a given URL
134
- static func gitClone( url: URL , to path: String ? = nil , allowingPrompt: Bool = false ) -> ShellOutCommand {
134
+ static func gitClone( url: URL , to path: String ? = nil , allowingPrompt: Bool = true ) -> ShellOutCommand {
135
135
var command = " \( git ( allowingPrompt: allowingPrompt) ) clone \( url. absoluteString) "
136
136
path. map { command. append ( argument: $0) }
137
137
command. append ( " --quiet " )
@@ -140,7 +140,7 @@ public extension ShellOutCommand {
140
140
}
141
141
142
142
/// Create a git commit with a given message (also adds all untracked file to the index)
143
- static func gitCommit( message: String , allowingPrompt: Bool = false ) -> ShellOutCommand {
143
+ static func gitCommit( message: String , allowingPrompt: Bool = true ) -> ShellOutCommand {
144
144
var command = " \( git ( allowingPrompt: allowingPrompt) ) add . && git commit -a -m "
145
145
command. append ( argument: message)
146
146
command. append ( " --quiet " )
@@ -149,7 +149,7 @@ public extension ShellOutCommand {
149
149
}
150
150
151
151
/// Perform a git push
152
- static func gitPush( remote: String ? = nil , branch: String ? = nil , allowingPrompt: Bool = false ) -> ShellOutCommand {
152
+ static func gitPush( remote: String ? = nil , branch: String ? = nil , allowingPrompt: Bool = true ) -> ShellOutCommand {
153
153
var command = " \( git ( allowingPrompt: allowingPrompt) ) push "
154
154
remote. map { command. append ( argument: $0) }
155
155
branch. map { command. append ( argument: $0) }
@@ -159,7 +159,7 @@ public extension ShellOutCommand {
159
159
}
160
160
161
161
/// Perform a git pull
162
- static func gitPull( remote: String ? = nil , branch: String ? = nil , allowingPrompt: Bool = false ) -> ShellOutCommand {
162
+ static func gitPull( remote: String ? = nil , branch: String ? = nil , allowingPrompt: Bool = true ) -> ShellOutCommand {
163
163
var command = " \( git ( allowingPrompt: allowingPrompt) ) pull "
164
164
remote. map { command. append ( argument: $0) }
165
165
branch. map { command. append ( argument: $0) }
@@ -169,7 +169,7 @@ public extension ShellOutCommand {
169
169
}
170
170
171
171
/// Run a git submodule update
172
- static func gitSubmoduleUpdate( initializeIfNeeded: Bool = true , recursive: Bool = true , allowingPrompt: Bool = false ) -> ShellOutCommand {
172
+ static func gitSubmoduleUpdate( initializeIfNeeded: Bool = true , recursive: Bool = true , allowingPrompt: Bool = true ) -> ShellOutCommand {
173
173
var command = " \( git ( allowingPrompt: allowingPrompt) ) submodule update "
174
174
175
175
if initializeIfNeeded {
0 commit comments