High-impact frequency comb applications that are critically dependent on precise pulse timing (i.e., repetition rate) have recently emerged and include the synchronization of X-ray free-electron lasers, photonic analogue-to-digital conversion and photonic radar systems. These applications have used attosecond-level timing jitter of free-running mode-locked lasers on a fast time scale within similar to 100 mu s. Maintaining attosecond-level absolute jitter over a significantly longer time scale can dramatically improve many high-precision comb applications. To date, ultrahigh quality-factor (Q) optical resonators have been used to achieve the highest-level repetition-rate stabilization of mode-locked lasers. However, ultrahigh-Q optical-resonator-based methods are often fragile, alignment sensitive and complex, which limits their widespread use. Here we demonstrate a fibre-delay line-based repetition-rate stabilization method that enables the all-fibre photonic generation of optical pulse trains with 980-as (20-fs) absolute r.m.s. timing jitter accumulated over 0.01s (1s). This simple approach is based on standard off-the-shelf fibre components and can therefore be readily used in various comb applications that require ultra-stable microwave frequency and attosecond optical timing.