Pedri came off the bench to score the winner as Barcelona extended their lead at the top of La Liga to six points with a slender win over Girona.
The 20-year-old, who was playing his 100th game in all competitions for Barcelona, tapped home from four yards after Jordi Alba's cross was fumbled by Fulham loanee Paulo Gazzaniga.
The win extends Barcelona's unbeaten run to nine league games.
They have 47 points with Real Madrid, who have a game in hand, on 41 points.
Real Madrid host third-placed Real Sociedad on Sunday at 20:00 GMT.
Girona, who only had two shots on target late in normal time, are 12th, four points clear of the relegation zone.
They had manager Michel sent off in second-half stoppage time after his protests for a foul by Barcelona midfielder Frenkie de Jong.
Barcelona were without Poland striker Robert Lewandowski and Spain forward Ferran Torres through suspension and lacked potency in the forward areas.
France winger Ousmane Dembele also went off in the first half, with what looked like a thigh injury.
Xavi's side are unbeaten in La Liga since losing 3-1 to Real Madrid on 16 October - winning eight and drawing once - and are unbeaten in 13 games in all competitions.
They are looking to win La Liga for the first time since 2018-19.
Latest Stories
-
GPL 2024/25: Young Apostles hand Samartex first home defeat since March
2 hours -
Unconventional Trump brings openings and perils for Africa
3 hours -
Iseguri Initiative fights teenage pregnancy and early child marriage
3 hours -
‘Dreams quashed’: Foreign students and universities fear Australia’s visa cap
4 hours -
G20 talks in Rio reach breakthrough on climate finance, sources say
4 hours -
2024/25 Ghana League: Bechem United shock Chelsea in Berekum
6 hours -
GPL 2024/25: Nations FC beat Asante Kotoko to go top
6 hours -
GPL 2024/2025: Gold Stars drop to 2nd after 2-0 defeat to Medeama
6 hours -
#GPL 2024/25: Hearts pip Karela in Tamale to move into top 4
6 hours -
Feedback from Klopp, others more valuable than just anybody – Otto Addo to critics
6 hours -
Support us if you want to qualify for the World Cup – Otto Addo to Ghanaians
7 hours -
Defective ballot papers for Ahafo and Volta Regions destroyed by EC
7 hours -
Election 2024: Be fair and transparent – Togbe Afede to EC
7 hours -
AFCON 2025Q: Poor home form cost us – Otto Addo
7 hours -
Togbe Afede criticises recent Supreme Court rulings as uninspiring and illogical
7 hours