You are not logged in.

#1 2016-03-14 12:51:14

javeree
Member
Registered: 2016-03-14
Posts: 2

getting the previous version of AUR source through git

I can download a snapshot of https://aur.archlinux.org/packages/xf86 … sisimedia/
* through the website,
* or on a command line, I can execute git clone https://aur.archlinux.org/xf86-video-sisimedia.git

Now I want to get a snapshot of the PKGBUILD and matching files as they were on '2016-01-13 14:30'.
This is the date and time the package was first submitted in AUR. Later that same day, commits were entered to upgrade to 1.18. Now I want to build the package for xorg-server-1.16, so I need the originial submission.

What git command would I need to give to get a clone of the package source on or before that specific date ?

I would prefer that to manually undoing all the changes of the latest submit.

Offline

#2 2016-03-14 13:56:20

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,553

Re: getting the previous version of AUR source through git

Use git log to show you all of the commits. Decide which one you want, then use git checkout to check out the hash of the chosen commit.

Offline

#3 2016-03-14 14:13:13

javeree
Member
Registered: 2016-03-14
Posts: 2

Re: getting the previous version of AUR source through git

This is what I get:

git log https://aur.archlinux.org/xf86-video-sisimedia.git
fatal: Not a git repository (or any of the parent directories): .git

however git clone returns a copy of the latest sources.

Offline

#4 2016-03-14 14:15:38

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,553

Re: getting the previous version of AUR source through git

You run those commands from in the repo, ie after you clone it.

Offline

#5 2016-03-14 14:17:48

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,808
Website

Re: getting the previous version of AUR source through git

You do all of those commands inside the directory you cloned.


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#6 2016-03-14 14:18:50

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,919

Re: getting the previous version of AUR source through git

cd into the folder where you stored this specific clone, run "git log" there.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB