# Pijul bug repro

- pijul init
- touch textfile
- echo "a" > textfile
- pijul add textfile
- pijul record -m "a"
- pijul fork other
- pijul channel switch other
- echo "b" >> textfile
now looks like:
```
a
b
```
- pijul record -m "b"
- sed ' 1 s/.*/&c/' -i textfile
now looks like:
```
ac
b
```
- pijul record -m "c"
- pijul channel switch main
- pijul apply THE_C_COMMIT
- pijul reset
the file now looks like:
```
ac
b
```
- pijul channel switch other
- echo "d" >> textfile
- pijul record -m "d"
- sed ' 1 s/.*/&e/' -i textfile
- pijul record -m "e"
- pijul channel switch main
- pijul apply THE_E_COMMIT
- pijul reset
the file now looks like:
```
ace
b
```
(the d was not applied)
- pijul apply THE_D_COMMIT
- pijul reset
- The D commit will show up in the log, but not in the text file. Switch to the other channel, then back to the main channel, and it will show up.