Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions SourceGitweb/SourceGitweb.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) {
Expand All @@ -254,7 +254,7 @@ private function commit_changeset( $p_repo, $p_input, $p_branch='' ) {
$t_input_p1 = strpos( $t_input, '<div class="title_text">' );
$t_input_p2 = strpos( $t_input, '<div class="list_head">' );
if ( false === $t_input_p1 || false === $t_input_p2 ) {
echo 'commit data failure.';
echo "commit data failure.\n";
var_dump( strlen( $t_input ), $t_input_p1, $t_input_p2 );
die();
}
Expand Down