Skip to content

Commit 27d4537

Browse files
committed
Flip the arrow so carry knows where it's goin'
1 parent 121f170 commit 27d4537

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/git-sync.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,11 @@ copy_carry_files() {
194194
cp -a "$from_path" "$to_path"
195195
fi
196196
if [ "$has_explicit_dest" = true ]; then
197-
carried_names+=("$src_path -> $dest_path")
197+
if [ "$direction" = "to_work" ]; then
198+
carried_names+=("$src_path -> $dest_path")
199+
else
200+
carried_names+=("$dest_path -> $src_path")
201+
fi
198202
else
199203
carried_names+=("$src_path")
200204
fi

0 commit comments

Comments
 (0)