mirror of
https://github.com/gitpitch/gitpitch.git
synced 2024-04-18 07:30:55 +08:00
Support for PITCHME.yaml fallback convention.
This commit is contained in:
parent
49f3b4daac
commit
463198f6ca
|
@ -249,7 +249,23 @@ public class GitService {
|
|||
int downYAML = grsService.download(pp,
|
||||
PitchParams.PITCHME_YAML, pp.YAML());
|
||||
boolean downOk = downYAML == STATUS_OK;
|
||||
log.debug("fetchYAML: pp={}, downloaded YAML={}", pp, downYAML);
|
||||
log.debug("fetchYAML: pp={}, colocated YAML={}",
|
||||
pp, downYAML);
|
||||
|
||||
/*
|
||||
* If PITCHME.yaml not found at pp.pitchme path
|
||||
* try locate file using GitPitch convention
|
||||
* default by looking in repo root directory.
|
||||
*/
|
||||
if(!downOk && pp.pitchme != null) {
|
||||
downYAML =
|
||||
grsService.download(pp,
|
||||
PitchParams.PITCHME_YAML,
|
||||
PitchParams.PITCHME_YAML);
|
||||
downOk = downYAML == STATUS_OK;
|
||||
log.debug("fetchYAML: pp={}, fallback YAML={}",
|
||||
pp, downYAML);
|
||||
}
|
||||
|
||||
/*
|
||||
* Update pitchCache with new SlideshowModel.
|
||||
|
|
Loading…
Reference in New Issue
Block a user