diff --git a/SourceGitweb/SourceGitweb.php b/SourceGitweb/SourceGitweb.php index 6df340475..1d85bcc0a 100644 --- a/SourceGitweb/SourceGitweb.php +++ b/SourceGitweb/SourceGitweb.php @@ -227,11 +227,11 @@ private function import_commits( $p_repo, $p_uri_base, $p_commit_ids, $p_branch= $t_commit_url = $this->uri_base( $p_repo ) . 'a=commit;h=' . $t_fixed_id; $t_input = url_get( $t_commit_url ); - if ( false === $t_input ) { - echo "failed.\n"; - echo "$t_commit_url\n"; # DEBUG - continue; - } + if ( !$t_input ) { + echo "failed.\nno input found.\n"; + echo "The data returned from accessing \"$t_commit_url\" returned a FALSE value.\n"; + die(); + } list( $t_changeset, $t_commit_parents ) = $this->commit_changeset( $p_repo, $t_input, $p_branch ); if ( !is_null( $t_changeset ) ) { @@ -254,7 +254,7 @@ private function commit_changeset( $p_repo, $p_input, $p_branch='' ) { $t_input_p1 = strpos( $t_input, '