+ * Submodule entries in .gitmodules can include a "branch" field + * to indicate what remote branch each submodule tracks. + *
+ * That field is used by "git submodule update --remote" to update + * to the tip of the tracked branch when asked and by Gerrit to + * update the superproject when a change on that branch is merged. + *
+ * Subprojects that request a specific commit or tag will not have + * a branch name recorded. + *
+ * Not implemented for non-bare repositories.
+ *
+ * @param record Whether to record the branch name
+ * @return this command
+ * @since 4.2
+ */
+ public RepoCommand setRecordRemoteBranch(boolean update) {
+ this.recordRemoteBranch = update;
+ return this;
+ }
+
/**
* The progress monitor associated with the clone operation. By default,
* this is set to NullProgressMonitor
@@ -429,10 +454,14 @@ public class RepoCommand extends GitCommand