You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log.Info("User %s has been redirected to %s", results.OwnerName, owner.Name)
117
-
results.OwnerName=owner.Name
118
-
} else {
119
-
log.Warn("User %s has a redirect to user with ID %d, but no user with this ID could be found. Trying without redirect...", results.OwnerName, redirectedUserID)
log.Info("Repository %s/%s has been redirected to %s/%s", results.OwnerName, results.RepoName, redirectedRepo.OwnerName, redirectedRepo.Name)
151
-
results.RepoName=redirectedRepo.Name
152
-
results.OwnerName=redirectedRepo.OwnerName
153
-
owner.ID=redirectedRepo.OwnerID
154
-
} else {
155
-
log.Warn("Repo %s/%s has a redirect to repo with ID %d, but no repo with this ID could be found. Trying without redirect...", results.OwnerName, results.RepoName, redirectedRepoID)
156
-
}
157
-
}
158
-
159
153
// Now get the Repository and set the results section
log.Info("Repository %s/%s has been redirected to %s/%s", results.OwnerName, results.RepoName, redirectedRepo.OwnerName, redirectedRepo.Name)
170
+
results.RepoName=redirectedRepo.Name
171
+
results.OwnerName=redirectedRepo.OwnerName
172
+
repo=redirectedRepo
173
+
owner.ID=redirectedRepo.OwnerID
174
+
} else {
175
+
log.Warn("Repo %s/%s has a redirect to repo with ID %d, but no repo with this ID could be found. Trying without redirect...", results.OwnerName, results.RepoName, redirectedRepoID)
176
+
}
177
+
}
178
+
179
+
ifrepo==nil {
164
180
repoExist=false
165
181
ifmode==perm.AccessModeRead {
166
182
// User is fetching/cloning a non-existent repository
0 commit comments